File: xclick.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (51 lines) | stat: -rw-r--r-- 1,616 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
xclick            Scilab Group            Scilab Function            xclick
NAME
   xclick - wait for a mouse click
  
CALLING SEQUENCE
 [c_i,c_x,c_y,c_w,c_m]=xclick([flag])
PARAMETERS
 c_i       : integer, mouse button number.
           
 c_x,c_y   : real scalars, position of the mouse.
           
 c_w       : integer, window number.
           
 c_m       : string, menu callback.
           
 flag      : integer. If present, the click event queue is not cleared
           when entering  xclick.
           
DESCRIPTION
   xclick waits for a mouse click in the graphics window.  If it is called
  with 3 left hand side arguments, it waits for a mouse click  in the
  current graphics window.
  
   If it is called with 4 or 5 left hand side arguments, it waits for a
  mouse  click in any graphics window.
  
   The returned values are described below.
  
 c_i       : an integer which gives the number of the mouse button that
           was pressed  0, 1 or 2 (for left, middle and right) or -1 in
           case of problems with xclick.
           
 c_x,c_y   : the coordinates of the position of the mouse click in the
           current graphics  scale.
           
 c_w       : the window number where the click has occurred.
           
 c_m       : string associated with a dynamic menu. If xclick returns due
           to a click on a menu, c_i, c_x, c_y, and c_w take arbitrary
           values.
           
KNOWN TROUBLES
   xclick can return the message  "Can't grab the pointer" if the graphics
  window is iconified when  calling it.
  
SEE ALSO
   locate, xgetmouse
  
AUTHOR
   J.Ph.C.