Sign in Join
FPDoc Onlineexperiment

TControlFlag enumeration

In unit Controls

Flags values used mostly for pending actions in a control.

Declaration

pascal
TControlFlag = (cfLoading,cfAutoSizeNeeded,cfLeftLoaded,cfTopLoaded,
 cfWidthLoaded,cfHeightLoaded,cfClientWidthLoaded,
 cfClientHeightLoaded,cfBoundsRectForNewParentValid,
 cfBaseBoundsValid,cfPreferredSizeValid,
 cfPreferredMinSizeValid,cfOnChangeBoundsNeeded,
 cfProcessingWMPaint,cfKillChangeBounds,
 cfKillInvalidatePreferredSize,cfKillAdjustSize)

Description

Nothing more than the line above yet.

Values

cfLoadingSet by TControl.ReadState, and unset by TControl.Loaded when all controls for the form have finished loading.
cfAutoSizeNeededSet when AutoSize was delayed.
cfLeftLoadedSet when Left was set during loading.
cfTopLoadedSet when Top was set during loading.
cfWidthLoadedSet when Width was set during loading.
cfHeightLoadedSet when Height was set during loading.
cfClientWidthLoadedSet when ClientWidth was set during loading.
cfClientHeightLoadedSet when ClientHeight was set during loading.
cfBoundsRectForNewParentValidSet when BoundsRectForNewParent has been initialized.
cfBaseBoundsValidIndicates if the rectangle in the base bounds for a control is valid.
cfPreferredSizeValidSet when PreferredSize has been calculated (CalculatePreferredSize).
cfPreferredMinSizeValidSet when PreferredSize has been calculated (CalculatePreferredSize) for the minimum height and width for a control.
cfOnChangeBoundsNeededSet when the BoundsRect for a control has been changed and the host has not been updated.
cfProcessingWMPaintSet (in WndProc) while processing an LM_PAINT message.
cfKillChangeBoundsSet when a control is auto-sized. Used to prevent recursive calls when a control, its Parent, or its Children are auto-sized.
cfKillInvalidatePreferredSizeSet when a control is auto-sized. Used to prevent recursive calls when a control, its Parent, or its Children call their InvalidatePreferredSize methods.
cfKillAdjustSizeSet when a control is auto-sized. Used to prevent recursive calls when a control, its Parent, or its Children call their AdjustSize methods.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.