yangyangyty 发表于 2010-1-15 12:04:09

如何让复选框默认选中

如何在GUI 中启动窗口时就选中名为“第一个” 的复选框 位置是 20,10
谢谢了!

maxkingmax 发表于 2010-1-15 12:24:02

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 244, 304, 192, 114)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 32, 24, 97, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 32, 48, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
GUICtrlSetState(-1, $GUI_CHECKED)

yangyangyty 发表于 2010-1-15 17:29:43

谢谢~~~~~~
页: [1]
查看完整版本: 如何让复选框默认选中