Sign in Join
FPDoc Onlineexperiment

TWinControl.AutoSizePhases function

Member of TWinControlpublicIn unit Controls

Translates control state flags into AutoSizePhases.

Declaration

pascal
function AutoSizePhases: TControlAutoSizePhases; override

Function result

Set withe auto-size phase values enabled for the control.

Description

The return value is a TControlAutoSizePhases set type. It is populated with values from the TControlAutoSizePhase enumeration based on window control flags and other internal members in the class instance. When Parent has been assigned, the values are derived by calling AutoSizePhases in Parent.

AutoSizePhases is called from methods like DoAutoSize and UpdateShowing. It is also called from window message handlers like WMMove, WMSize, and WMWindowPosChanged.

See also

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