Jump to content
Sign in to follow this  
mattfaust

2 sets of radio button?

Recommended Posts

mattfaust

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

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
mattfaust

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.