Vcl.Forms.TForm.Enabled

From RAD Studio API Documentation

Delphi

property Enabled: Boolean read GetEnabled write SetEnabled stored IsEnabledStored default 1;

C++

__property Enabled = {default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TForm

Description

Controls whether the control responds to mouse, keyboard, and timer events. {{#multireplace:Vcl.Forms.TForm.Enabled|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.Controls.TControl.Enabled|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.Controls.TControl.Enabled|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Controls whether the control responds to mouse, keyboard, and timer events.

Use Enabled to change the availability of the control to the user. To disable a control, set Enabled to False. Some disabled controls appear dimmed (for example: buttons, check boxes, labels), while others (container controls) simply lose their functionality without changing their appearance. If Enabled is set to False, the control ignores mouse, keyboard, and timer events.

To re-enable a control, set Enabled to True.

Note: This property applies to all TControl descendants.

See Also


Code Examples