wolfbartels Posted May 4, 2009 Posted May 4, 2009 I got stuck with the following:I have a GUI with a 2-state GUICtrlCreateCheckbox and many other GUICtrlCreateInputWhen the GUI starts it several IniRead set all GUICtrlSetData accordinglythe 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.
Valuater Posted May 4, 2009 Posted May 4, 2009 $Checked = IniRead("Your Location", "Galerie", "Original", 0) ; later.... If $Checked <> 0 Then GUICtrlSetState( $Checkbox, $GUI_CHECKED) 8)
wolfbartels Posted May 5, 2009 Author Posted May 5, 2009 $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.
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