How GUISetGroup ( ) works?
#1
Posted 22 July 2004 - 05:22 PM
How can I make multiple group? How can I say "make this of radio controls a group and this ones an other"?
#2
Posted 22 July 2004 - 07:57 PM
What do you mean by "multiple group"?The help file seemed lacking of info for me...
How can I make multiple group? How can I say "make this of radio controls a group and this ones an other"?
Edit:
Bear in mind that a group box (the visible box around a number of controls) is different than a GuiSetGroup. GuiSetGroup just tells autoit which controls are to be grouped together for tabbing/checkbox purposes.
Edited by Jon, 22 July 2004 - 08:07 PM.
#3
Posted 23 July 2004 - 06:46 AM
Edited by ezzetabi, 23 July 2004 - 06:47 AM.
#4
Posted 23 July 2004 - 02:29 PM
Opt("GUINotifyMode", 1) GuiCreate("MyGUI") GUISetGroup ( ) $radio_1 = GUISetControl("radio", "Radio 1", 20, 30, 90, 30) $radio_2 = GUISetControl("radio", "Radio 2", 20, 70, 90, 40) $radio_3 = GUISetControl("radio", "Radio 3", 20, 120, 90, 40) GuiSetControlEx($radio_1, 1);checked GUISetGroup ( ) $radio_A = GUISetControl("radio", "Radio A", 200, 30, 80, 40) $radio_B = GUISetControl("radio", "Radio B", 200, 80, 80, 50) $radio_C = GUISetControl("radio", "Radio C", 200, 140, 80, 40) GuiSetControlEx($radio_B, 1);checked GuiShow() While 1 $msg = GuiMsg(0) If $msg = -3 Then Exit WEnd
#5
Posted 23 July 2004 - 02:35 PM
#6
Posted 23 July 2004 - 08:16 PM
Think it is grouped till the next GUISetGroup(). I tried it without a GuiSetControlEx().aHHH.. So it is grouped any Radio control between a GUISetGroup ( ) and the next GuiSetControlEx(radio) ?
When you take away the 2nd GUISetGroup() in the example of Cyberslug, then all six radios are one group although there is a GuiSetControlEx() after the first three radios.
arctor
#7
Posted 23 July 2004 - 08:22 PM
It's grouped until the next GuiSetGroup OR a new "group box" control is created.Think it is grouped till the next GUISetGroup(). I tried it without a GuiSetControlEx().
When you take away the 2nd GUISetGroup() in the example of Cyberslug, then all six radios are one group although there is a GuiSetControlEx() after the first three radios.
arctor
#8
Posted 23 July 2004 - 08:34 PM
I just tried it. Right. It works. I thougt before: A GuiSetControl("group",.....) is just for visualization. So, if I use a GuiSetControl("group",.....) in the right place in my script (before each radio group) I don't need a GUISetGroup(). Is that right?It's grouped until the next GuiSetGroup OR a new "group box" control is created.
arctor
#9
Posted 23 July 2004 - 09:04 PM
I did change it to just be a visualisation, but there was some complaining so I changed it back...I just tried it. Right. It works. I thougt before: A GuiSetControl("group",.....) is just for visualization. So, if I use a GuiSetControl("group",.....) in the right place in my script (before each radio group) I don't need a GUISetGroup(). Is that right?
arctor
#10
Posted 23 July 2004 - 09:35 PM
GuiSetGroup($first, $last)
Where any control in the range (inclusive) of $first through $last is part of a group. This explicit declaration of which controls should be grouped together should remove some of the confusion.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





