Returns or sets whether the object responds to user input.
Object.Enabled [ = bEnabled ]
The Enabled property syntax has the following parts:
Name |
Type |
Description |
Object |
A control or the AForm |
A control object or the AForm object |
bEnabled |
Bool |
A boolean expression that specifies whether object can receive the focus and respond to user-generated events. |
bEnabled can have one of the following values:
Value |
Description |
True |
The object can receive the focus and respond to user input. |
False |
The object cannot receive the focus and cannot respond to user input. |
The Enabled property may also affect the control's text and picture appearance. Text is displayed as gray foreground color with a 3D effect (insert with light shading.). Pictures are also displayed with a 3D effect.
If Enabled is set to False, the control's text areas will appear dimmed, including any labels, captions, or axes.
The following statement disables the ACheckBox:
chkStopOnTest.Enabled=False
All controls and the AForm.