File: grms2m.f

package info (click to toggle)
pgplot5 5.2-13
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 6,280 kB
  • ctags: 5,903
  • sloc: fortran: 37,938; ansic: 18,809; sh: 1,147; objc: 532; makefile: 363; perl: 234; pascal: 233; tcl: 178; awk: 51; csh: 25
file content (33 lines) | stat: -rw-r--r-- 909 bytes parent folder | download | duplicates (15)
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
      INCLUDE 'FLIB.FI'   !include if compiled separately
      INCLUDE 'FGRAPH.FI'
      INCLUDE 'MOUSE.FI'
      SUBROUTINE GRMS2M( IX, IY, CHR)
      INCLUDE 'FLIB.FD'
      INCLUDE 'FGRAPH.FD'
      INCLUDE 'MOUSE.FD'
C* pos and return mouse cursor, return key pressed
C C. T. Dum March 23,1995
c link with mouse.obj (FL32 distr.)
      RECORD /EVENT/ pEvent
      INTEGER*4 ichr
      INTEGER*2 IX, IY
      CHARACTER*(*) CHR
      ICHR = 0
c move mouse cursor, exit if key other than Function or Cursor is
c pressed
      DO WHILE(ICHR .EQ. 0)
         call setptrpos(int4(ix),int4(iy))
         call setptrvis(1)
         chr=getcharQQ()
         ichr=ichar(chr)
         if(ichr.eq.0) then
c function or cursor key was pressed
          chr=getcharQQ()
         endif
         call getptrpos(pEvent)
         ix=pEvent.x
         iy=pEvent.y
      ENDDO
      call setptrvis(2)
      RETURN
      END