Sign in Join
FPDoc Onlineexperiment

TControlStateType enumeration

In unit Controls

State flags of a Control.

Declaration

pascal
TControlStateType = (csLButtonDown,csClicked,csPalette,csReadingState,
 csFocusing,csCreating,csPaintCopy,csCustomPaint,
 csDestroyingHandle,csDocking,csVisibleSetInLoading)

Description

TControlStateType is an enumeration type which contains values that represent state information for control class instances, including:

  • csLButtonDown
  • csClicked
  • csPalette
  • csReadingState
  • csAlignmentNeeded
  • csFocusing
  • csCreating
  • csPaintCopy
  • csCustomPaint
  • csDestroyingHandle
  • csDocking
  • csVisibleSetInLoading

Values from the TControlStateType enumeration are stored in the TControlState type, and used to implement the ControlState property in TControl.

See also

Values

csLButtonDownIndicates the Left mouse button was down for the control.
csClickedIndicates the control was clicked; occurs after button down/up processing.
csPalettePalettes are not currently implemented in LCL.
csReadingStateIndicates the ReadState method has been called for the control.
csFocusingIndicates the focus for the control has been changed.
csCreatingIntroduced for Delphi compatibility; not used in LCL.
csPaintCopyIndicates a device context was copied in PaintControls.
csCustomPaintIndicates a custom paint method is used to draw the control; determines the handler called to paint the control.
csDestroyingHandleUsed to suppress message processing when the control is freed.
csDockingIndicates the Dock method has been called for a control.
csVisibleSetInLoadingIndicates the control is being loaded using the LCL component streaming mechanism.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.