no chekbox cheked event - Forum

Forum Navigation
You need to log in to create posts and topics.

no chekbox cheked event

hi,

how to use cheked event in chekbox ?

thanks

Hi @farhad2008,

There is not such an event.
You should use the "change" event and check the checkbox variable value (true or false).
Steps:

  • Add a checkbox object
  • Asign a variable to the object on the properties panel: [myvar]
  • Double click on the chekbox and enter this on the "change" event:
AlertBox "Value:" "[myvar]" ""
  • Run the app and click on the checkbox.

I hope it helps.

 

thank you luishp

how can I change the checkbox state? (I want to change back to the initial state after user modified it.) Thanks.

Just add this code:

SetVar "[myvar]" false

Where myvar is the variable name you have assigned to the checkbox in properties.
Use true instead of false if you want to check it instead of uncheck it.
Regards.

Peter has reacted to this post.
Peter