本帖最后由 1007236046 于 2012-8-19 16:38 编辑
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 432, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 216, 112, 137, 41)
$Button1 = GUICtrlCreateButton("变色", 200, 216, 73, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetColor($Checkbox1,0xFF0000)
EndSwitch
WEnd
button按钮可以改变文字颜色,checkbox又不行了 |