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

TCustomForm.AllAutoSized

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

Declaration

Source position: forms.pp line 598

protected procedure TCustomForm.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

TCustomForm.Visible

  

Indicates if the control is visible on its parent.

TCustomForm.MoveToDefaultPosition

  

Moves the form to the location specified in the Position property.

TCustomForm.Position

  

The initial placement for the form.

TWinControl.Showing

  

Cached widget visibility, not necessarily in sync with the widget.

TWinControl.AllAutoSized

  

Called by DoAllAutoSize after all bounds are computed.

TWinControl.DoAllAutoSize

  

Resizes and aligns the control and all of it children.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.