TPosition describes the positioning of a form.
TPosition = ( poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter );
enum TPosition { poDesigned, poDefault, poDefaultPosOnly, poDefaultSizeOnly, poScreenCenter, poDesktopCenter, poMainFormCenter, poOwnerFormCenter };
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 displays 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, because CLX does not include multi-monitor support. |
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. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|