CheckBox.Action

From Xojo Documentation

Event


Checkbox.Action()

Supported for all project types and targets.

The CheckBox has been clicked or the value has been changed programmatically. A right-click does not trigger the Action event.

Sample Code

If the the CheckBox value has been changed, either programmatically or by the user, then you may want to also cause another action to occur. In this event, you can take the action you need. This example could be used to update an App preference value based on the CheckBox setting:

App.UseLargeFont = Me.Value

This code makes a TextArea read-only based on a CheckBox setting:

TextArea1.ReadOnly = Me.Value