WCenter() - Makes a window visible, or centres it
Makes a window visible, or centres it
──────────────────────────────────────────────────────────────────────────────
Syntax
WCenter( [<lCentre>] [,<nWindow>] ) --> nWindow
Arguments
<lCentre> controls whether or not the window is centered in the
visible output screen or whether the window is simply moved so that it
is made visible. If this parameter is omitted the window is moved to a
visable area of the screen.
<nWindow> an optional numeric parameter that centres a specific
window. If omitted, the current window is used.
Returns
WCenter() returns the current window as a numeric.
Description
WCenter() may be used to display a window that is not visible, either
because it is not on the visible screen, or because it is hidden behind
another window. The window can automatically be centred in the visible
window by passing a .T. for <lCentre>
WCenter() may be used to show a specific window by passing a window
number as <nWindow>.
Examples
■ This example shows how to centre a specific window:
WCenter( .T., 14)
Files: Library is MRWINDOW.LIB.