beartony 发表于 2013-5-26 22:16:37

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

本帖最后由 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 andialog 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

afan 发表于 2013-5-26 22:43:57

GUICtrlCreateLabel("SoftwareType",$X_Axis+20,$Y_Axis+70) 下面插一行 GUIStartGroup()

beartony 发表于 2013-5-27 10:08:11

回复 2# afan

多谢多谢!问了个小白问题~~

ncxj 发表于 2015-10-28 20:51:25

哈哈......
为了描述问题,可还真费了一把劲.
页: [1]
查看完整版本: (已解决)如何利用GUI 创建两组独立的单选框