Sign in Join
FPDoc Onlineexperiment

TPosition enumeration

In unit Forms

Represents the Position and Size of a Form on Screen.

Declaration

pascal
TPosition = (poDesigned,poDefault,poDefaultPosOnly,poDefaultSizeOnly,
 poScreenCenter,poDesktopCenter,poMainFormCenter,
 poOwnerFormCenter,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

Values

poDesignedThe Form appears exactly as it is positioned and sized in the Form Designer.
poDefaultThe window manager decides how the form is to appear, in a default position and size.
poDefaultPosOnlyKeeps the designed form size, but position determined by window manager.
poDefaultSizeOnlyKeeps the designed form position, but size determined by window manager.
poScreenCenterCenters the form on screen.
poDesktopCenterCenters the form on the desktop (not recommended, use poScreenCenter).
poMainFormCenterCenters the form on the Main Form.
poOwnerFormCenterCenters the form on its Owner form.
poWorkAreaCenter

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