Moves the active window to a new location. You use PageInfo() to get the current window position.
Note: This function is not supported in the server process in a multiprocessor environment. Calling this function from the server process results in a hardware alarm being raised.
Syntax
WinPos(X, Y)
X, Y:
The new x and y pixel coordinates of the top-left corner of the active window.
If the window is a pinned window, the new coordinates will specify a location for the window that is based on the unscaled version of the page that hosts it.
Return Value
0 (zero) if successful, otherwise an error code is returned.
Related Functions
Example
WinPos(100,50);
/* Moves the top-left corner of the active window to the pixel coordinate 100,50. */
See Also
Published June 2018