GRAPHIC WINDOW CLICK statement

Purpose

Check whether a GRAPHIC WINDOW has been clicked with the mouse.

Syntax

GRAPHIC WINDOW CLICK [hwin&] TO click&, x!, y!

hWin&

Handle of the GRAPHIC WINDOW to check.

Remarks

GRAPHIC WINDOW CLICK checks whether the specified GRAPHIC WINDOW has been clicked since the last time this statement was executed on this window.  If so, the value one (1) is assigned to the click& variable for a single click, or two (2) for a double click.  Also, the mouse position is assigned to x! and y!.  If the has been no click, the value zero (0) is assigned to all three result variables.

In case of a double click, a click& value of one (1) is returned immediately after the first click, and a click& value of two (2) is also returned after the second click.

If the optional handle (hwin&) is omitted, the graphic window which is currently selected with GRAPHIC ATTACH is used.

See also

GRAPHIC WINDOW