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

TControl.DoAllAutoSize

Resizes and aligns the control and all of it children.

Declaration

Source position: controls.pp line 1366

protected procedure TControl.DoAllAutoSize; virtual;

Description

No actions are performed in the method when AutoSizingAll is True, or when the control is not derived from TWinControl.

Calls DoAutoSize while the control includes cfAutoSizeNeeded in its ControlFlags property. Called from the AdjustSize and EnableAutoSizing methods.

Errors

Raises an EInvalidOperation exception if Parent has not been assigned for the control.

See also

TControl.Parent

  

The control within which the control is shown.

TControl.AutoSizingAll

  

Flag to prevent recursive AutoSizing (in DoAllAutoSize).

TControl.AutoSizeDelayed

  

Returns True if auto-sizing has been delayed until some other process is complete.

TWinControl.Controls

  

Provides indexed access to the child controls for the class instance.


Version 3.2 Generated 2024-02-25 Home