Jump to content
Sign in to follow this  
wolfbartels

CheckBox in combination with Ini file

Recommended Posts

wolfbartels

I got stuck with the following:

I have a GUI with a 2-state GUICtrlCreateCheckbox and many other GUICtrlCreateInput

When the GUI starts it several IniRead set all GUICtrlSetData accordingly

the GUI stops for the user to change eventually some entries, then a Button starts processing.

To write the status to the Ini file I use

IniWrite($sIniPfad & $sIni, "Galerie", "Original", BitAND(GUICtrlRead($Check_Box_1),1))

that works. Now I am looking for a similar way to read out the ini file and GUICtrlSetData to the CheckBox.

Thanks.

Share this post


Link to post
Share on other sites
wolfbartels

$Checked = IniRead("Your Location", "Galerie", "Original", 0)

; later....

If $Checked <> 0 Then GUICtrlSetState( $Checkbox, $GUI_CHECKED)

8)

Thanks. I confounded CtrlSetState with CtrlSetData for CheckBox, that was the reason things didn't work.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.