Enabled Property

Applies To
Button, Label, TextBox, RadioButton, CheckBox, ListBox, ComboBox, PictureBox, GroupBox, Timer, VideoBox, LED, ProgressBar, TrackBar, StatusBar, Grid , TabControl

Description
Gets or sets whether a control is enabled or not at runtime.

Usage

GGet Form.Control.Enabled, var  
GSet  Form.Control.Enabled, value  
Form
Name of a form or string variable containing a form name.
Control
Name of a control or string variable containing a control name.
var
Boolean variable that will contain the value of the property.
value
Boolean expression for the new value of the property.

Values
False
True
Default: True (for others than Timer) False (for Timer)

Remarks
In certain situations, you need to prevent the operator from clicking a control, such as a button. For example, when SPEL+ tasks are not running, you can dim a Pause button by setting Enabled to False.

See Also
Button, Label, TextBox, RadioButton, Checkbox, ListBox, ComboBox, PictureBox, GroupBox, Timer, VideoBox, LED, ProgressBar, TrackBar, StatusBar , TabControl

Example

GSet frmMain.btnPause.Enabled, False