Vcl.Forms.TPosition
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 |
---|---|
|
The form appears positioned on the screen and with the same height and width as it had at design time. |
|
The form appears in a position on the screen and with a height and width determined by the operating system. |
|
The form appears with the size you created it at design time, but the operating system chooses its position on the screen. |
|
The form appears in the position you left it at design time, but the operating system chooses its size. |
|
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. |
|
The form remains the size you left it at design time, but is positioned in the center of the screen. |
|
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 |
|
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 |