Jammer Posted February 22, 2005 Posted February 22, 2005 (edited) how to make my checkbox checked? i try : $mycheckboxid = GuiCtrlCreateCheckbox("this is text", 70, 200, 100, 20) GUICtrlSetData ($mycheckboxid,$GUI_CHECKED) and i get the same unchecked check box... and just the text "this is text" changes to text "4"..... creepy thing :F What function should I use? Edited February 22, 2005 by Jammer
SlimShady Posted February 22, 2005 Posted February 22, 2005 You should use GUICtrlSetStateGUICtrlSetState ($mycheckboxid,$GUI_CHECKED)
Holger Posted February 22, 2005 Posted February 22, 2005 (edited) Hi Jammer GUICtrlSetData is primary used to update 'data' for a control, like text and so on.You have to use GUICtrlSetState cause you want to change the selected/checked state of the control.RegardsHolgerEdit: @SlimShady: what are you making the whole day? Just a little more faster than me Edited February 22, 2005 by Holger Old project:GUI/Tray menu with icons and colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
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