Show: Object Pascal C++
Display Preferences

System.Classes.TComponent.ComponentState

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property ComponentState: TComponentState read FComponentState;

C++

__property TComponentState ComponentState = {read=FComponentState, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

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

ComponentState is a set of constants defined in the TComponentState type.

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 run time, it can check for the csDesigning flag.

ComponentState is read-only and its flags are set automatically when appropriate.

See Also

Personal tools
Translations