[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TControl.ControlState

Contains state flags which indicate whether the control has been clicked, data is being read, or the control is being re-drawn, etc.

## Declaration

Source position: controls.pp line 1803

`public property TControl.ControlState : TControlState read FControlState write FControlState;`

## Description

ControlState is a TControlState property which contains flags that indicate when actions are detected or handled for the control. It is a set type which contains zero or more values from the TControlStateType enumeration.

Values are added to the property when an event is detected. Values are removed from the property in methods which handle the event by performing some action on the control.

For more information about the values in the enumeration and their uses and meanings, please refer to TControlStateType.

## See also

TControl.ReadState |  | Updates control flags and reads the data for the component.
TControl.Dock |  | Moves the control into a new docksite.
TControl.WMLButtonDown |  | Handles a LM_LBUTTONDOWN (left mouse button down) message for the control.
TControl.WMLButtonUp |  | Message handler for left mouse button up events.
TControl.WndProc |  | The general message handler for this control.
TControlState |  | Set of control states used in a control.
TControlStateType |  | State flags of a Control.