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

TPosition

Represents the Position and Size of a Form on Screen.

Declaration

Source position: forms.pp line 56

type TPosition = (

  poDesigned,

  

The Form appears exactly as it is positioned and sized in the Form Designer.

  poDefault,

  

The window manager decides how the form is to appear, in a default position and size.

  poDefaultPosOnly,

  

Keeps the designed form size, but position determined by window manager.

  poDefaultSizeOnly,

  

Keeps the designed form position, but size determined by window manager.

  poScreenCenter,

  

Centers the form on screen.

  poDesktopCenter,

  

Centers the form on the desktop (not recommended, use poScreenCenter).

  poMainFormCenter,

  

Centers the form on the Main Form.

  poOwnerFormCenter,

  

Centers the form on its Owner form.

  poWorkAreaCenter

);

Description

TPosition is an enumerated type with values that describe the policy used to position and size a form instance in an application. TPosition is the type used to implement the Position property in TCustomForm. TPosition is used in the implementation of the MoveToDefaultPosition method in TCustomForm.

See also

TCustomForm.Position

  

The initial placement for the form.

TCustomForm.MoveToDefaultPosition

  

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


Version 3.2 Generated 2024-02-25 Home