本帖最后由 KLU3K 于 2010-11-30 18:42 编辑
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 293, 150, -1, -1)
$Radio1 = GUICtrlCreateRadio("Radio1", 14, 18, 113, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
$Radio2 = GUICtrlCreateRadio("Radio2", 12, 48, 113, 17)
$Radio3 = GUICtrlCreateRadio("Radio3", 172, 20, 113, 17)
$Radio4 = GUICtrlCreateRadio("Radio4", 172, 48, 113, 17)
$Combo1 = GUICtrlCreateCombo("", 176, 88, 65, 25, $CBS_DROPDOWNLIST)
GUICtrlSetData(-1, "1|2|3|4|5", "1")
GUICtrlSetState(-1, $GUI_DISABLE)
$Radio5 = GUICtrlCreateRadio("自定义", 12, 92, 113, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Radio1
MsgBox(0, "Debug", "1")
Case $Radio2
MsgBox(0, "Debug", "2")
Case $Radio3
MsgBox(0, "Debug", "3")
Case $Radio4
MsgBox(0, "Debug", "4")
Case $Radio5
GUICtrlSetState($Combo1, $GUI_ENABLE)
Case $Combo1
$val = GUICtrlRead($Combo1)
MsgBox(0, "Debug", $val)
EndSwitch
WEnd
记得给我评分啊!缺钱!嘿嘿 |