Sign in Join
FPDoc Onlineexperiment

TCustomForm.AllAutoSized procedure

Member of TCustomFormprotectedIn unit Forms

If the form is about to show, calculate its metrics.

Declaration

pascal
procedure AllAutoSized; override

Description

AllAutoSized is an overridden method used to apply the position and layout for a visible form that about to be displayed. AllAutoSized implements the virtual method defined in the ancestor class.

AllAutoSized is called from the DoAllAutoSize method when AutoSize has been enabled, and occurs after the bounds for the form have been calculated. It calls the MoveToDefaultPosition method to move the form to the monitor and relative location in Position.

No actions are performed in the method if the form is already Showing or it is not Visible.

See also

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