Jump to content

GUICtrlCreateCheckbox Set Data


autoitxp
 Share

Recommended Posts

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

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