WMove() - Moves a window to a specified place
Moves a window to a specified place
──────────────────────────────────────────────────────────────────────────────
Syntax
WMove( <nRow>, <nCol> [, <nWindow> ]) --> nWindow
Arguments
<nRow> is the row of the top right coordinate for the new position
<nCol> is the column of the top right coordinate for the new position
<nWindow> is an optional parameter for the window to move. If no
window parameters is passed then the current window is moved.
Returns
WMove() returns the number of the window that was moved. If an invalid
window was passed down, then a -1 is returned.
Description
WMove() allows you to move a window to the specified coordinates.
Notes
■ nRow() and nCol() are relative to WBoard()
■ If the edge of the application window/screen is on the edge of the
physical screen and WMode(), for that edge, has been toggled to .T.,
then you may move windows off of that side of the screen.
For example in split screen mode, i.e. 80x50 the application window
appears in the top of the screen with the top, left and right edges
in their natural place, if WMode() were called with:
WMode(.T., .T., .T.)
then you would be able to move windows left, up and right outside of
the screen borders, but now down.
Examples
■ This example moves the current window to physical coordinates 10, 10
WBoard( 10, 10, MaxRow()-10, MaxCol()-10 )
WMove( 0, 0 )
Files: Library is MRWINDOW.LIB.