Moves a window.
MoveW #n, x, y
MoveW #n, x, y moves the window specified in n (0 to _maxInt) so that its upper left corner is at coordinates x, y in pixels. When the window doesn't have a number, the handle can be specified.
Local a%
OpenW # 200, 15, 15, 200, 100, -1
Print "Press any key to move this window"
KeyGet a%
MoveW 200, 50, 50 ' pixels
Print AT(1, 1); "Press any key to close this window"
KeyGet a%
CloseW # 200
Draws two windows on the screen and waits for a key press. The second window is then moved.
Any window or control can be moved. For Ocx objects you can also use the Move method, but for forms this method takes the coordinates in twips.
{Created by Sjouke Hamstra; Last updated: 20/10/2014 by James Gaite}