Sign in Join
FPDoc Onlineexperiment

TControl.AutoSizePhases function

Member of TControlpublicIn unit Controls

Auto-sizing phases enabled for the control.

Declaration

pascal
function AutoSizePhases: TControlAutoSizePhases; virtual

Function result

Set with the TControlAutoSizePhase values.

Description

AutoSizePhases is a TControlAutoSizePhases function used to get the Autosizing phases enabled for the control. In general, the values in AutoSizePhases depend on the TWinControlFlag values enabled for the control.

For TControl, the values from the Parent control are used. If the Parent control is unassigned, the value is an empty set ([]).

For TWinControl, the value from the Parent control are used (when a Parent has been assigned). Otherwise, the windows control flags are used to get the return value. For example:

wcfCreatingHandle,wcfCreatingChildHandles
Includes caspCreatingHandles in the set
wcfRealizingBounds
Includes caspRealizingBounds in the set
wcfUpdateShowing
Includes caspShowing in the set

In addition, AutoSizingAll forces caspComputingBounds to be included in the set. caspChangingProperties is included when the internal auto-sizing lock count has a value greater than zero (0).

See also

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