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

TCustomForm.AllAutoSized

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

Declaration

Source position: forms.pp line 672

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 visibility for the widget. Not necessarily in sync with the widget.

TWinControl.AllAutoSized

  

Called from DoAllAutoSize after all bounds have been computed for the control.

TWinControl.DoAllAutoSize

  

Performs actions to resize and align the control and all of its children.


Version 3.2 Generated 2024-02-25 Home