找回密码
 加入
搜索
查看: 1648|回复: 5

[GUI管理] GUICtrlCreateRadio控件可以分组互不干扰吗[已解决]

  [复制链接]
发表于 2017-9-22 17:36:57 | 显示全部楼层 |阅读模式
本帖最后由 heroxianf 于 2017-9-22 21:15 编辑

下图所示:我想做个选择题,GUICtrlCreateRadio控件可以分组互不干扰,第一题我选A,第二题我选B。





#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\tester\Desktop\Form1.kxf
$Form1 = GUICreate("Form1", 350, 330, 295, 192)
$Label1 = GUICtrlCreateLabel("一斤棉花和一斤铁,哪个重一点?", 48, 68, 200, 17)
$Label2 = GUICtrlCreateLabel("什么东西最值钱?", 48, 156, 200, 17)
$Radio1 = GUICtrlCreateRadio("A:棉花", 52, 108, 113, 17)
$Radio2 = GUICtrlCreateRadio("B:铁", 196, 108, 113, 17)
$Radio3 = GUICtrlCreateRadio("A:钱", 48, 200, 113, 17)
$Radio4 = GUICtrlCreateRadio("B:黄金", 196, 204, 113, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

        EndSwitch
WEnd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2017-9-22 17:57:27 | 显示全部楼层
GuiCtrlCreateGroup

评分

参与人数 1金钱 +10 收起 理由
heroxianf + 10 原来这个有这个功效~

查看全部评分

 楼主| 发表于 2017-9-22 18:11:21 | 显示全部楼层
回复 2# Alam


GuiCtrlCreateGroup 自带的线框有什么样式可以不显示么?  隐藏控件?
发表于 2017-9-22 18:22:03 | 显示全部楼层
应该用 GUIStartGroup()
发表于 2017-9-22 19:43:41 | 显示全部楼层
顶下A版,,一般也是用这个。。
 楼主| 发表于 2017-9-22 21:13:22 | 显示全部楼层
完美解决~   多谢A大和坛友了。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-19 03:02 , Processed in 0.078554 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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