File: xclick.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (52 lines) | stat: -rw-r--r-- 1,432 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
52

xclick(2)                      Scilab Function                      xclick(2)
NAME
  xclick - wait for a mouse click

CALLING SEQUENCE
  [c_i,c_x,c_y]=xclick([flag])
  [c_i,c_x,c_y,c_w]=xclick([flag])
  [c_i,c_x,c_y,c_w,c_m]=xclick([flag])

PARAMETERS

  c_i       : integer (button number)

  c_x,c_y        : real scalars (position)

  c_w            : integer (window number)

  c_m            : Character string (menu callback)

  flag           : an integer. If present, the click event queue is not
                 cleared when entering xclick

DESCRIPTION
  if called with 3 lhs arguments waits for a mouse click in the current
  graphic window

  if called with 4 or 5 lhs arguments waits for a mouse click in any graphic
  window

  returned values:

  c_i  : an integer which gives the number of the mouse button that was
       pressed [0,1,2] (for [left,middle,right]) or i=-1 in case of problems
       with xclick.

  c_x,c_y
       : the coordinates in the current graphic scale of the position of the
       mouse click.

  c_w  : the window number where the click has occurred

  c_m  : Character string associated with a dynamic menu. If xclick returns
       due to a click on a menu, c_i, c_x, c_y, c_w take arbitrary values.

KNOWN TROUBLES
  This function can return the message Can't grab the pointer if the graphic
  window is iconified when calling the function xclick.
SEE ALSO
  locate
AUTHOR
  J.Ph.C.