Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]


Smart way to DoAutoSize.


Source position: controls.pp line 1615

public procedure TControl.AdjustSize; virtual;


AdjustSize is the same as Delphi the TWinControl.DoAutoSize method. But since DoAutoSize is commonly overridden in descendent 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



Allows automatic adjustment of the size for the control, according to its content.

CT Web help

CodeTyphon Studio