找回密码
 加入
搜索
查看: 1757|回复: 4

[AU3基础] 复选框的问题(已解决)

[复制链接]
发表于 2010-10-29 10:57:22 | 显示全部楼层 |阅读模式
本帖最后由 xargw 于 2010-10-31 11:41 编辑

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 413, 305, 334, 265)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 56, 16, 97, 17)
$Button1 = GUICtrlCreateButton("Button1", 88, 80, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                        If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then
                                MsgBox(0,"提示","选中")
                        EndIf

        EndSwitch
WEnd
我错在哪里?

评分

参与人数 1金钱 +10 收起 理由
afan + 10 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

发表于 2010-10-29 11:15:19 | 显示全部楼层
Case $form2 ?
发表于 2010-10-29 12:35:14 | 显示全部楼层
Case $form2
改成Case $Button1
你太粗心了。
 楼主| 发表于 2010-10-31 11:43:38 | 显示全部楼层
上面的问题,已解决,谢谢各位
我想问一下,如果我有两个复选框,在易语言中是用如果真表示,在au3中,那个条件表示是那个意思啊
发表于 2010-11-4 19:22:30 | 显示全部楼层
学习了,谢谢
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-11 03:44 , Processed in 0.077815 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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