【已解决】如何设置复选框的默认项
本帖最后由 dnvplj 于 2015-4-16 21:51 编辑请问各位朋友,下面代码如何设1-3-5-6为默认项,多谢了。#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 516, 361, 192, 124)
$Group1 = GUICtrlCreateGroup("Group1", 16, 16, 489, 289)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Checkbox1 = GUICtrlCreateCheckbox("腾讯QQ聊天", 40, 50, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("五笔输入法", 160, 50, 97, 17)
$Checkbox3 = GUICtrlCreateCheckbox("搜狗拼音输入法", 280, 50, 97, 17)
$Checkbox4 = GUICtrlCreateCheckbox("千千听", 40, 100, 97, 17)
$Checkbox5 = GUICtrlCreateCheckbox("暴风影音", 160, 100, 97, 17)
$Checkbox6 = GUICtrlCreateCheckbox("酷我音乐", 280, 100, 97, 17)
$Button1 = GUICtrlCreateButton("安装", 272, 320, 73, 33)
$Button2 = GUICtrlCreateButton("退出", 360, 320, 73, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
Exit
EndSwitch
WEnd $Checkbox1 = GUICtrlCreateCheckbox("腾讯QQ聊天", 40, 50, 97, 17)
GUICtrlSetState(-1, 1);需要的下面都加这一行 本帖最后由 dnvplj 于 2015-4-16 21:52 编辑
回复 2# afan
感谢afan版主的指教,问题解决了。
页:
[1]