TTAJohn08 Posted March 17, 2008 Share Posted March 17, 2008 I am trying to make two sets of radio buttons for a simple GUI. I have the four radio buttons made but only one of them can be active at a time. How do i change it so that there are two independant sets, each of which can have 1 button activated. i.e. one switch can be on/off. the other can be yes/no. Thanx in advance. Link to comment Share on other sites More sharing options...
Aceguy Posted March 17, 2008 Share Posted March 17, 2008 something like this #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 447, 193, 125) $Group1 = GUICtrlCreateGroup("Group1", 24, 24, 129, 217) $Radio1 = GUICtrlCreateRadio("Radio1", 40, 48, 97, 25) $Radio2 = GUICtrlCreateRadio("Radio2", 40, 80, 97, 33) $Radio3 = GUICtrlCreateRadio("Radio3", 40, 112, 105, 33) $Radio4 = GUICtrlCreateRadio("Radio4", 40, 152, 105, 33) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group2 = GUICtrlCreateGroup("Group2", 160, 32, 145, 97) $Radio5 = GUICtrlCreateRadio("Radio5", 168, 48, 113, 25) $Radio6 = GUICtrlCreateRadio("Radio6", 168, 80, 105, 33) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
TTAJohn08 Posted March 18, 2008 Author Share Posted March 18, 2008 (edited) Thanks for your reply. Just got home from work and will be trying this in the morning because I'm heading to sleep now. EDIT: This worked perfectly and is exactly what i needed to do. Thanks a lot. Edited March 18, 2008 by TTAJohn08 Link to comment Share on other sites More sharing options...
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