Jump to content

Recommended Posts

Posted

$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

Posted

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.

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
×
×
  • Create New...