Xbasic

SYS_ID_MOVE Function

Syntax

V SYS_ID_MOVE(C window_name,N x,N y)

Arguments

window_name

The name of the window as reported by SYS_ID_ENUM()or seen on the window's title bar.

x

The new left coordinate of the window in inches.

y

The new top coordinate of the window in inches.

Description

SYS_ID_MOVE() moves the window named Window_Name to the new location on the screen specified by Left_Position and Top_Position.

Example

The following example assumes that Notepad is open and the name of the window (as seen on the title bar) is "Untitled - Notepad".

sys_id_show("Untitled - Notepad")
sys_id_move("Untitled - Notepad", 2.5, 2.5) -> move window so left position is 2.5 inches, top position is 2.5 inches

Limitations

Desktop applications only.

See Also