Automatic property for PowerScript controls
Controls
CheckBox and RadioButton controls
Description
When the Automatic property is enabled, the state of the control
changes automatically when the user selects it. Typically, the state
toggles between selected and not
selected. For check boxes, if the ThreeState property
has been enabled, the state of the control also toggles to a third
state.
When this property is enabled, a mark is displayed in the
control when the control’s state is selected and
no mark is displayed when the control’s state is not
selected. For check boxes, if the ThreeState property
is enabled, a grayed out mark is displayed for the third
state.
Usage
In a painter
To enable automatic state change:
-
Select the Automatic check box on the General
page of the control’s Properties view.
In scripts
The Automatic property takes a boolean value. This example
sets a CheckBox so that its state changes each time it is selected.
1 |
cbx_1.Automatic = TRUE |