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

TControl.AutoSizePhases

Auto-sizing phases enabled for the control.

Declaration

Source position: controls.pp line 1649

public function TControl.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

TWinControlFlags

  

Set type used to store TWinControlFlag enumeration values.

TControlAutoSizePhase

  

Represents AutoSizing phases for controls.


Version 3.2 Generated 2024-02-25 Home