Jump to content

How to use checkbox?


zutto
 Share

Recommended Posts

yeh :E

i havent figured out yet howto use checkbox?

$x1 = GUICtrlCreateCheckbox ("Select this ", 10, 10, 120, 20)

but howto use that?

$x1 = GUICtrlCreateCheckbox ("Select this ", 10, 10, 120, 20)

if $x1 = 1 then

dostuff

endif

or ?

Link to comment
Share on other sites

#include <GUIConstants.au3>

If GUICtrlRead($x1) = $GUI_CHECKED then msgbox(0, 'Checkbox1', 'Checkbox1 is checked)

That is wrong, it should be BitAnd(GUICtrlRead($x1),$GUI_CHECKED) to check if it is checked. It is in the helpfile for GUICtrlRead().
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...