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

TControl.AdjustSize

Smart way to DoAutoSize.

Declaration

Source position: controls.pp line 1500

public procedure TControl.AdjustSize; virtual;

Description

This method does the same as Delphi 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.

During loading and handle creation the calls are delayed.

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.