autoitxp Posted November 29, 2007 Share Posted November 29, 2007 (edited) Hi i have problem setting up GUICtrlCreateCheckbox Data its not reading and writing properly i want to know how GUICtrlSetData() for GUICtrlCreateCheckbox i didnt get good results from autoit help file about GUICtrlCreateCheckbox here is problem it just setting up 1 to lable rather then checked box Local $printradio = GUICtrlCreateCheckbox ("Print", 400, 340, 120, 20) local $prints = GUICtrlCreateLabel ("", $align1, $align12, $align3, $align2) if GUICtrlRead($prints) = "CHECKED" Then GUICtrlSetData($printradio, $GUI_CHECKED ) Edited November 29, 2007 by autoitxp Link to comment Share on other sites More sharing options...
redfive19 Posted November 29, 2007 Share Posted November 29, 2007 I think GUICtrlSetData is the wrong command. You should most likely be using GUICtrlSetState. Link to comment Share on other sites More sharing options...
Iklim Posted November 29, 2007 Share Posted November 29, 2007 I think GUICtrlSetData is the wrong command. You should most likely be using GUICtrlSetState. Right, GuiCtrlSetData will change the text near the checkbox not the checkbox state. You need to use GuiCtrlSetState to achieve what you want to do. [ like this : GUICtrlSetState($printradio, $GUI_CHECKED ) ] Iklim Link to comment Share on other sites More sharing options...
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