Sign in to follow this  
Followers 0
tom13

Start with a checked checkbox?

4 posts in this topic

#1 ·  Posted (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 by tom13

Share this post


Link to post
Share on other sites



It's in the manual/help file under guiCtrlSetState


...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites

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 :D

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