INITIALPOSITION property (Window)
Description
Specifies the starting location of the window.
Property Value
This is an integer property that can be one of the following values:
• 0 – As Designed – the form is displayed using the Left and Top property values
• 1 – Center on Desktop – the form is displayed centered on the Desktop
• 2 – Center on Parent – the form is displayed centered on it's parent.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
Get/Set | Get Only | No | No | No |
Remarks
This property does not apply when used with an MDI Child window.
Equated constants for the INITIALPOSITION property value can be found in the PS_WINDOW_EQUATES insert record.
Example
$Insert PS_Window_Equates // Get the window INITIALPOSITION setting InitPos = Get_Property( @Window, "INITIALPOSITION" )
See Also
SIZE property, SYSTEMSIZE property, RECT property, LEFT property, TOP property, CENTER method.