Crash Posted October 23, 2009 Share Posted October 23, 2009 I tried to write a GUI with 4 radio buttons in it, but they are divided into 2, something like Firewall on, off and security center on, off. The design is like this: Firewall Security Center O On O On O Off O Off 4 radio buttons with 2 controls. But when I use the following scripts, ALL the radio buttons are joined together: GUICreate("Multiple Radio buttons", 500, 350) GUISetState() GUICtrlCreateRadio("This is radio A", 10 , 10, 100) GUICtrlCreateRadio("This is radio B", 10 , 35, 100) GUICtrlCreateLabel("A and B should be in a control", 10, 60) GUICtrlCreateRadio("This is radio 1", 10 , 80, 100) GUICtrlCreateRadio("This is radio 2", 10 , 115, 100) GUICtrlCreateLabel("1 and 2 should be in a control", 10, 135) GUICtrlCreateLabel("But now A, B, 1 and 2 are all mixed. How can you separate them?", 10, 150) While 1 WEnd How can I solve the problem? Thx in advance. JPGRAR | Mouse Lock | My website | Thanks so much for your help! ❤️ Link to comment Share on other sites More sharing options...
GEOSoft Posted October 23, 2009 Share Posted October 23, 2009 I tried to write a GUI with 4 radio buttons in it, but they are divided into 2, something like Firewall on, off and security center on, off. The design is like this: Firewall Security Center O On O On O Off O Off 4 radio buttons with 2 controls. But when I use the following scripts, ALL the radio buttons are joined together: GUICreate("Multiple Radio buttons", 500, 350) GUISetState() GUICtrlCreateRadio("This is radio A", 10 , 10, 100) GUICtrlCreateRadio("This is radio B", 10 , 35, 100) GUICtrlCreateLabel("A and B should be in a control", 10, 60) GUICtrlCreateRadio("This is radio 1", 10 , 80, 100) GUICtrlCreateRadio("This is radio 2", 10 , 115, 100) GUICtrlCreateLabel("1 and 2 should be in a control", 10, 135) GUICtrlCreateLabel("But now A, B, 1 and 2 are all mixed. How can you separate them?", 10, 150) While 1 WEnd How can I solve the problem? Thx in advance. GUICreate("Multiple Radio buttons", 500, 350) GUISetState() GUIStartGroup() ;; To start the first group GUICtrlCreateRadio("This is radio A", 10 , 10, 100) GUICtrlCreateRadio("This is radio B", 10 , 35, 100) GUIStartGroup() ;; To close the first group and start the second GUICtrlCreateLabel("A and B should be in a control", 10, 60) GUICtrlCreateRadio("This is radio 1", 10 , 80, 100) GUICtrlCreateRadio("This is radio 2", 10 , 115, 100) GUIStartGroup() ;; To close the second group GUICtrlCreateLabel("1 and 2 should be in a control", 10, 135) GUICtrlCreateLabel("But now A, B, 1 and 2 are all mixed. How can you separate them?", 10, 150) While 1 WEnd George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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