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

TControl.AdjustSize

AdjustSize - Smart way to DoAutoSize

Declaration

Source position: controls.pp line 1264

public procedure TControl.AdjustSize; virtual;

Description

TControl.AdjustSize calls DoAutoSize in a smart fashion.

During loading and handle creation the calls are delayed.

This method initially does the same as TWinControl.DoAutoSize. But since DoAutoSize is commonly overriden by descendant components, it is not useful to perform all tests, which can result in too much overhead. To reduce this the LCL calls AdjustSize instead.

See also

#lcl.Controls.AutoSize

  

AutoSize - boolean property that permits the size of a control to be adjusted automatically

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