找回密码
 加入
搜索
查看: 2726|回复: 3

[GUI管理] (已解决)如何利用GUI 创建两组独立的单选框

[复制链接]
发表于 2013-5-26 22:16:37 | 显示全部楼层 |阅读模式
本帖最后由 beartony 于 2013-5-27 10:13 编辑

本人在创建Radio的时候不知道怎么让单选框独立开。就是想让两组选项1跟选项2独立选择。
谢谢各位大侠赐教


#include <GUIConstantsEx.au3>

$X_Axis = 30
$Y_Axis = 30

    GUICreate("My GUI radio",500,500) ; will create a dialog box that when displayed is centered
        $SoftwareCompliance_Group = GUICtrlCreateGroup("Software Compliance", $X_Axis,$Y_Axis,460,160)
        GUICtrlCreateLabel("SoftwareLevel",$X_Axis+20,$Y_Axis+20)
        $Software_Radio1 = GUICtrlCreateRadio("选项1", $X_Axis+20,$Y_Axis+40)
        $Software_Radio2 = GUICtrlCreateRadio("选项2", $X_Axis+120,$Y_Axis+40)
        $Software_Radio3 = GUICtrlCreateRadio("选项3", $X_Axis+240,$Y_Axis+40)
        $Software_Radio4 = GUICtrlCreateRadio("选项4", $X_Axis+360,$Y_Axis+40)
        GUICtrlCreateLabel("SoftwareType",$X_Axis+20,$Y_Axis+70)
        $Compliance_Radio1 = GUICtrlCreateRadio("选项1", $X_Axis+20,$Y_Axis+90)
        $Compliance_Radio2 = GUICtrlCreateRadio("选项2", $X_Axis+120,$Y_Axis+90)
        GUISetState() ; will display an  dialog box with 1 checkbox

    ; Run the GUI until the dialog is closed
    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
           
        EndSelect
    WEnd

评分

参与人数 1威望 -5 金钱 -30 贡献 -2 收起 理由
afan -5 -30 -2

查看全部评分

发表于 2013-5-26 22:43:57 | 显示全部楼层
GUICtrlCreateLabel("SoftwareType",$X_Axis+20,$Y_Axis+70) 下面插一行 GUIStartGroup()
 楼主| 发表于 2013-5-27 10:08:11 | 显示全部楼层
回复 2# afan

多谢多谢!问了个小白问题~~
发表于 2015-10-28 20:51:25 | 显示全部楼层
哈哈......
为了描述问题,可还真费了一把劲.
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-28 01:30 , Processed in 0.080252 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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