Page 1 of 1

Operating with checkboxes

Posted: Mon Feb 02, 2015 12:06 am
by Ultravibe
Good day!
Could you help me with your advise, how to use checkboxes:
I can already set the visibility of checkboxes (example: set the visible of button "Check1" to false / true)
Now i need to know:
1) How i can set the value (box checked or not) manually (not by clicking on it, but set it in program code)?
2) How can i know a current state of checkbox (checked or not) and use it in expressions?
Thank U!!!!

Re: Operating with checkboxes

Posted: Mon Feb 02, 2015 12:25 am
by Dixie

Code: Select all

set the hilite of button "whateveritsnameis" to true
will give the button a 'checkmark"

Code: Select all

set the hilite of button "whateveritsnameis" to fale
will remove the checkmark

to find out its state...

Code: Select all

put the hilite of button "whateveritsnameis" into myVar
the variable myVar will contain true or false depending on whether the button is displaying a checkmark or not.

Re: Operating with checkboxes

Posted: Mon Feb 02, 2015 1:12 am
by dunbarx
Hi.

When you get that down, play with radio buttons, where the normal behavior is that only one of each group of buttons may be hilited at any one time.

This is different for your question about checkboxes, where one or more than one may be hilited.

Craig Newman

Re: Operating with checkboxes

Posted: Mon Feb 02, 2015 8:00 am
by Ultravibe
Thank you, guys!!!!

Re: Operating with checkboxes

Posted: Mon Feb 02, 2015 1:14 pm
by Klaus