找回密码
 加入
搜索
查看: 2880|回复: 2

如何让复选框默认选中

[复制链接]
发表于 2010-1-15 12:04:09 | 显示全部楼层 |阅读模式
如何在GUI 中启动窗口时就选中名为“第一个” 的复选框 位置是 20,10
谢谢了!
发表于 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)

评分

参与人数 1金钱 +15 贡献 +1 收起 理由
afan + 15 + 1

查看全部评分

 楼主| 发表于 2010-1-15 17:29:43 | 显示全部楼层
谢谢~~~~~~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-22 14:37 , Processed in 0.079882 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表