tom13 Posted May 2, 2007 Posted May 2, 2007 (edited) Hi, I want to do this: If IniRead("config.ini", "DualGlide", "DualGlidekey", "") = 1 Then $DualGlide = GUICtrlCreateCheckbox ("Enable DualGliding?", 4, 154);This one needs to be CHECKED, how??? Else $DualGlide = GUICtrlCreateCheckbox ("Enable DualGliding?", 4, 154) EndIf Anyone knows how to let teh first checkbox be checked automatically? Edited May 2, 2007 by tom13
jefhal Posted May 2, 2007 Posted May 2, 2007 It's in the manual/help file under guiCtrlSetState ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
MHz Posted May 2, 2007 Posted May 2, 2007 If Int(IniRead("config.ini", "DualGlide", "DualGlidekey", "0")) = 1 Then $DualGlide = GUICtrlCreateCheckbox ("Enable DualGliding?", 4, 154);This one needs to be CHECKED, how??? GUICtrlSetState(Default, $GUI_CHECKED) Else $DualGlide = GUICtrlCreateCheckbox ("Enable DualGliding?", 4, 154) EndIf Use GUICtrlSetState() to make it checked.
tom13 Posted May 2, 2007 Author Posted May 2, 2007 It's in the manual/help file under guiCtrlSetState I tried that but couldn't figure it out If Int(IniRead("config.ini", "DualGlide", "DualGlidekey", "0")) = 1 Then $DualGlide = GUICtrlCreateCheckbox ("Enable DualGliding?", 4, 154);This one needs to be CHECKED, how??? GUICtrlSetState(Default, $GUI_CHECKED) Else $DualGlide = GUICtrlCreateCheckbox ("Enable DualGliding?", 4, 154) EndIf Use GUICtrlSetState() to make it checked. That's how it works! Thanks for your fast response man, appreciated
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now