Loading...
 

Move

Move

Move(windowID, childID), Move(windowID), Move(, childID), Move

parameters: Identifier of a Windows and a child Windows object

Stack
Stack Position Description
Stack(In) Top position y
Top 1 Position x
Stack(Out) Top -

The window object is moved to the new position (x, y). The coordinates are always specified in minicells - exactly as in the definition of the window objects. Exceptions are toplevel windows, because Minicells make little sense outside a window and pixels are more suitable for positioning windows.

If you want to define the position relative to another object, use the coordinates obtained with GetPosition (see example). Widgets, whose position is fixed in a dimension by Attach , cannot be moved in this dimension by Move.

After a widget has been moved by Move, the attachments of the parent widget are reevaluated and the window is redrawn. If the layout is no longer correct after the move, the order or type of attachments may have to be adjusted (see: Evaluation of attachments).

Note: From Windows 10 on windows have a thinner frame. For backwards compatibility, Windows has adjusted the calculation of the window coordinates so that toplevel windows still have a distance to the upper left corner after a 0 0 move, because the window still has a transparent border. To make a window flush with the upper left edge, it must be moved to (-8,-8) under Windows 10.

See also: