FMX.Forms.TFormPosition

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TFormPosition = (Designed, Default, DefaultPosOnly, DefaultSizeOnly, ScreenCenter, DesktopCenter, MainFormCenter, OwnerFormCenter);

C++

enum class DECLSPEC_DENUM TFormPosition : unsigned int { Designed, Default, DefaultPosOnly, DefaultSizeOnly, ScreenCenter, DesktopCenter, MainFormCenter, OwnerFormCenter, poDesigned _DEPRECATED_ATTRIBUTE3("Use TFormPosition.Designed")  = 0, poDefault _DEPRECATED_ATTRIBUTE3("Use TFormPosition.Default")  = 1, poDefaultPosOnly _DEPRECATED_ATTRIBUTE3("Use TFormPosition.DefaultPosOnly")  = 2, poDefaultSizeOnly _DEPRECATED_ATTRIBUTE3("Use TFormPosition.DefaultSizeOnly")  = 3, poScreenCenter _DEPRECATED_ATTRIBUTE3("Use TFormPosition.ScreenCenter")  = 4, poDesktopCenter _DEPRECATED_ATTRIBUTE3("Use TFormPosition.DesktopCenter")  = 5, poMainFormCenter _DEPRECATED_ATTRIBUTE3("Use TFormPosition.MainFormCenter")  = 6, poOwnerFormCenter _DEPRECATED_ATTRIBUTE3("Use TFormPosition.OwnerFormCenter")  = 7 };

Properties

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

Description

TFormPosition describes the positioning of a FireMonkey form.

TFormPosition consists of the following values:


Value Meaning

Designed

The form appears positioned on the screen at the top and left coordinates specified at design time, and with the same height and width as it had at design time.

Default

The form appears in a position on the screen and with a height and width determined by the operating system. Each time you run the application, the form moves slightly down and to the right. The right side of the form is always near the rightmost side of the screen, and the bottom of the form is always near the bottom of the screen, regardless of the screen's resolution.

The operating system only supports this for overlapped windows. For a pop-up or child window (that has a BorderStyle of None, for example), the window is positioned in the upper-left corner of the screen.

On OS X, the default position for new windows is the upper-left corner of the screen.

DefaultPosOnly

The form displays with the size you created it at design time, but the operating system chooses its position on the screen. Each time you run the application, the form moves slightly down and to the right. When the form can no longer move down and to the right and keep the same size while remaining entirely visible on the screen, the form displays in the upper-left corner of the screen.

The operating system only supports this for overlapped windows. For a pop-up or child window (that has a BorderStyle of None, for example), the window is positioned in the upper-left corner of the screen.

On OS X, the default position for new windows is the upper-left corner of the screen.

DefaultSizeOnly

The form appears in the position you left it at design time, but the operating system chooses its size. The right side of the form is always near the rightmost side of the screen, and the bottom of the form is always near the bottom of the screen, regardless of the screen's resolution.

ScreenCenter

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

DesktopCenter

The form remains the size you left it at design time, but is positioned in the center of the screen. No adjustments are made for multi-monitor applications.

MainFormCenter

The form remains the size you left it at design time, but is positioned in the center of the application's main form. No adjustments are made for multi-monitor applications. This position should only be used with secondary forms. If set for a main form, it acts like ScreenCenter.

OwnerFormCenter

The form remains the size you left it at design time, but is positioned in the center of the owner form. If there is no owner form, this position acts like MainFormCenter.


See Also