Sign in Join
FPDoc Onlineexperiment

TControl.AdjustSize procedure

Member of TControlpublicIn unit Controls

Smart way to DoAutoSize.

Declaration

pascal
procedure AdjustSize; virtual

Description

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.