Sign in Join
FPDoc Onlineexperiment

TCustomForm.DoAutoSize procedure

Member of TCustomFormprotectedIn unit Forms

For internal use only; call AdjustSize instead.

Declaration

pascal
procedure DoAutoSize; override

Description

IMPORTANT: Many Delphi controls override this method and many call this method directly after setting some properties.

During handle creation not all interfaces can create complete Device Contexts which are needed to calculate things like text size. That's why you should always call AdjustSize instead of DoAutoSize.

This description is the one of Controls.TControl.DoAutoSize.

See also

  • AutoSize
  • AdjustSize

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