Vcl.Forms.TPosition

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TPosition = (poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly,
poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter);

C++

enum DECLSPEC_DENUM TPosition : unsigned char { poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms Vcl.Forms

Description

TPosition describes the positioning of a form.

TPosition consists of the following values:


Value Meaning

poDesigned

The form appears positioned on the screen and with the same height and width as it had at design time.

poDefault

The form appears in a position on the screen and with a height and width determined by the operating system.

poDefaultPosOnly

The form appears with the size you created it at design time, but the operating system chooses its position on the screen.

poDefaultSizeOnly

The form appears in the position you left it at design time, but the operating system chooses its size.

poScreenCenter

The form remains the size you left it at design time, but is positioned in the center of the screen. Note that in multi-monitor applications, this may result in a form that does not fall entirely on one monitor.

poDesktopCenter

The form remains the size you left it at design time, but is positioned in the center of the screen.

poMainFormCenter

The form remains the size you left it at design time, but is positioned in the center of the application's main form. This position should only be used with secondary forms. If set for a main form, it acts like poScreenCenter.

poOwnerFormCenter

The form remains the size you left it at design time, but is positioned in the center of the form specified by the Owner property. If the Owner property does not specify a form, this position acts like poMainFormCenter.

See Also