Donald8274 Posted December 2, 2009 Posted December 2, 2009 Could a nice someone please give me an example on how to have more than one set of radio buttons? Thanks.
picea892 Posted December 2, 2009 Posted December 2, 2009 #include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $radio_1, $radio_2, $msg GUICreate("My GUI group") ; will create a dialog box that when displayed is centered GUICtrlCreateGroup("Group 1", 190, 60, 90, 140) $radio_1 = GUICtrlCreateRadio("Radio 1", 210, 90, 60, 20) $radio_2 = GUICtrlCreateRadio("Radio 2", 210, 110, 60, 50) GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group GUICtrlCreateGroup("Group 2", 5, 60, 90, 140) $radio_1 = GUICtrlCreateRadio("Radio 3", 10, 90, 60, 20) $radio_2 = GUICtrlCreateRadio("Radio 4", 10, 110, 60, 50) GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group GUISetState() ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now