RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponent.ComponentState Property

Describes the current state of the component, indicating when a component needs to avoid certain actions.

Pascal
property ComponentState: TComponentState;
C++
__property TComponentState ComponentState;

Components use the ComponentState property to detect states in which certain kinds of actions are allowed or disallowed. For example, if a component needs to avoid certain behaviors at design time that it performs at runtime, it can check for the csDesigning flag. ComponentState is read-only and its flags are set automatically when appropriate. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!