Jump to content

Recommended Posts

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]

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]

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
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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...