Cicode Programming Reference > Cicode Function Categories > Window Functions Introduction > WinPos


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.


WinPos(X, Y)

X, Y:

The new x and y pixel coordinates of the top-left corner of the active window.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

WinSize, WinMove, PageInfo


/* Moves the top-left corner of the active window to the pixel coordinate 100,50. */

See Also

Window Functions