Jump to content

Recommended Posts

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
Posted

It's in the manual/help file under guiCtrlSetState

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

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

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
  • Recently Browsing   0 members

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