RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TShape.Enabled Property

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

Pascal
property Enabled: Boolean;
C++
__property Boolean Enabled;

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!