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

TWinControl.DoAutoSize

Shrink or enlarge the control to fit children.

Declaration

Source position: controls.pp line 2024

protected procedure TWinControl.DoAutoSize; override;

Description

Because this method is frequently overridden, the LCL calls the added TControl.AdjustSize instead, which checks whether DoAutoSize really should be called right now.

DoAutoSize does roughly this:

See also

TControl.DoAutoSize

  

For internal use only - call AdjustSize instead!

The latest version of this document can be found at lazarus-ccr.sourceforge.net.