Sign in to follow this  
Followers 0
autoitxp

GUICtrlCreateCheckbox Set Data

3 posts in this topic

#1 ·  Posted (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 by autoitxp

Share this post


Link to post
Share on other sites



I think GUICtrlSetData is the wrong command. You should most likely be using GUICtrlSetState.

Share this post


Link to post
Share on other sites

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

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  
Followers 0