Jump to content

Start with a checked checkbox?


Recommended Posts

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