|
本帖最后由 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 |
评分
-
查看全部评分
|