Sign in to follow this  
Followers 0
mattfaust

2 sets of radio button?

4 posts in this topic

$Radio_auth = GuiCtrlCreateRadio("Requires Authentification", 100, 160, 170, 20)
GUICtrlSetState($Radio_auth, $GUI_CHECKED)
$auth = 1
$Radio_noauth = GuiCtrlCreateRadio("No Authentification", 100, 180, 170, 20)

$Input_user = GuiCtrlCreateInput("Username", 100, 200, 200, 20)
$Input_pass = GuiCtrlCreateInput("Password", 100, 240, 200, 20)

$Radio_SSL = GuiCtrlCreateRadio("Requires SSL", 100, 260, 170, 20)
GUICtrlSetState($Radio_SSL, $GUI_CHECKED)
$SSL = 1
$Radio_noSSL = GuiCtrlCreateRadio("No SSL", 100, 280, 170, 20)

my radio buttons cancel the other out when i click one, what am I doing wrong

Share this post


Link to post
Share on other sites



Look in the help for GUICtrlCreateGroup()

Share this post


Link to post
Share on other sites

Radio buttons are designed to cancel each other out. Only one can be set on inside of a particular group. Check boxes are more appropriate if multiple selections are needed. Other than that you would need to create separate groups (GUICtrlCreateGroup) with the radios insides them.

Share this post


Link to post
Share on other sites

yup, I found it while I was waiting for a reply.

i shouldve looked a little harder

thanks

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