本帖最后由 shqf 于 2010-4-23 22:17 编辑
楼主大概是不是这个意思:#include <GUIConstantsEx.au3>
$form1 = GUICreate("", 300, 200)
$edit1 = GUICtrlCreateEdit("edit1", 50, 10, 100, 180)
GUICtrlSetData(-1, "1111111111111" & @CRLF & "111111111111111111" & _
@CRLF & "111111111111111111" & @CRLF & "111111111111111111" & _
@CRLF & "111111111111111111" & @CRLF & "111111111111111111" & _
@CRLF & "111111111111111111" & @CRLF & "111111111111111111" & _
@CRLF & "111111111111111111" & @CRLF & "111111111111111111" & _
@CRLF & "111111111111111111" & @CRLF & "111111111111111111" & _
@CRLF & "111111111111111111" & @CRLF & "111111111111111111")
$edit2 = GUICtrlCreateEdit("edit2", 10, 50, 180, 100)
GUICtrlSetData(-1, "22222222222222222222222222222" & @CRLF & _
"22222222222222222222222222222" & @CRLF & _
"22222222222222222222222222222" & @CRLF & _
"22222222222222222222222222222" & @CRLF & _
"22222222222222222222222222222")
$Radio1 = GUICtrlCreateRadio("$edit1在上", 214, 48, 80, 25)
$Radio2 = GUICtrlCreateRadio("$edit2在上", 214, 80, 80, 25)
GUICtrlSetState(-1,$GUI_CHECKED)
GUICtrlSetState($edit1, $GUI_DISABLE)
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
Case $Radio1
GUICtrlSetState($edit2, $GUI_DISABLE)
GUICtrlSetState($edit1, $GUI_ENABLE)
GUICtrlSetState($edit1, $GUI_FOCUS)
Case $Radio2
GUICtrlSetState($edit2, $GUI_FOCUS)
GUICtrlSetState($edit1, $GUI_DISABLE)
GUICtrlSetState($edit2, $GUI_ENABLE)
EndSwitch
WEnd
|