Sign in to follow this  
Followers 0
B3TA_SCR1PT3R

grouping

6 posts in this topic

heres wat i have:

$Radio_1 = GuiCtrlCreateRadio("Radio1", 220, 30, 70, 20)
$Radio_2 = GuiCtrlCreateRadio("Radio2", 300, 30, 80, 20)
$Radio_3 = GuiCtrlCreateRadio("Radio3", 220, 80, 80, 20)
$Radio_4 = GuiCtrlCreateRadio("Radio4", 310, 80, 60, 20)
$Radio_5 = GuiCtrlCreateRadio("Radio5", 220, 120, 80, 20)
$Radio_6 = GuiCtrlCreateRadio("Radio6", 310, 120, 60, 20)

how can i group them so that i can only choose between 1 or 2/3 or 4/5 or 6

im not using guictrlcreategroup because i dont want the line thingy around it

any suggestions?


[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites



How about using code and when user selects a radio force the complimentary radio off.

By the way, since you only have two states could use checkbox

Share this post


Link to post
Share on other sites

How about using code and when user selects a radio force the complimentary radio off.

By the way, since you only have two states  could use checkbox

<{POST_SNAPBACK}>

yeah i guess but i like radios better ..only one to choose dont have to disable and enable and all that

asdfljsdfklj


[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites

how can i group them so that i can only choose between 1 or 2/3 or 4/5 or 6

im not using guictrlcreategroup because i dont want the line thingy around it

don't understand the logic with the "2/3" or "4/5"

you're wanting these to have the same state always? i.e. 2 checked and 3 checked, can't uncheck one without affecting the other.


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

yeah i guess but i like radios better ..only one to choose dont have to disable and enable and all that

asdfljsdfklj

<{POST_SNAPBACK}>

What do you mean disable - just use:

GUICtrlSetState(Radio_1, $GUI_UNCHECKED)

GUICtrlSetState(Radio_2, $GUI_CHECKED)

I am sure some of the guys will be able to give you better code.

Probably array to lookup relationships and UDF to check and uncheck correspondingly

Share this post


Link to post
Share on other sites

thx for all the replys.. i looked in the helpfile again and found GuiStartGroup()


[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

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