CenterWindow property


Available for window objects (Window, MDIWindow and DialogBox).

Read/Write only at design time

Specifies how a window object will be positioned on the screen when shown for the first time. It can be one of the following values:

0 Manual Window is positioned according to its Left and Top properties
1 Parent Window is centered related to its parent
2 Screen Window is centered on the screen
3 Default Window is positioned according to Windows defaults (default)


REMARKS
: If value Parent is specified and the window has no parent, it will be centered on the screen. On the other hand, if value Screen is specified for a window which is an MDI child (
MDIChild property set to TRUE), the value for the property will be changed to Default.