Jump to content

2 sets of radio button?


mattfaust
 Share

Recommended Posts

$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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...