Sign in to follow this  
Followers 0
Donald8274

More than one set of radio buttons

3 posts in this topic

Could a nice someone please give me an example on how to have more than one set of radio buttons? Thanks.

Share this post


Link to post
Share on other sites



#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

Share this post


Link to post
Share on other sites

Thank you! :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0