1
.TH xclick 2 "April 1993" "Scilab Group" "Scilab Function"
4
xclick - wait for a mouse click
7
[c_i,c_x,c_y,c_w,c_m]=xclick([flag])
12
: integer, mouse button number.
15
: real scalars, position of the mouse.
18
: integer, window number.
21
: string, menu callback.
24
: integer. If present, the click event queue is not cleared when entering
27
\fVxclick\fR waits for a mouse click in the graphics window.
29
If it is called with 3 left hand side arguments, it waits for a mouse click
30
in the current graphics window.
32
If it is called with 4 or 5 left hand side arguments, it waits for a mouse
33
click in any graphics window.
35
The returned values are described below.
38
: an integer which gives the number of the mouse button that was pressed
39
0, 1 or 2 (for left, middle and right) or -1 in case of problems with xclick.
42
: the coordinates of the position of the mouse click in the current graphics
46
: the window number where the click has occurred.
49
: string associated with a dynamic menu. If xclick returns
50
due to a click on a menu, \fVc_i\fR, \fVc_x\fR, \fVc_y,\fR and \fVc_w\fR take
53
\fVxclick\fR can return the message
54
"Can't grab the pointer" if the graphics window is iconified when