FUNCTIONS GT

GTI_SETPOS_XY

Query or change the position of the window in pixels

Syntax

Signature
GtInfo( GTI_SETPOS_XY, [nX, nY | aPosition] ) --> aPosition

Arguments

GTI_SETPOS_XY

The selector, from gtinfo.ch.

nX

The new left edge of the window on the desktop.

nY

The new top edge of the window on the desktop.

aPosition

The new position as { nX, nY }.

Return value

The position before the call as { nX, nY }.

Description

The position is the top left corner of the window frame on the desktop.

Notes

Supported by GTWVT, GTSDL3, GTXWC and GTGLFW. On other terminals the result is NIL.

Output

See also