home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
dirs
/
rexxintuition_463.lzh
/
RexxIntuition
/
RexxIntui.lzh
/
scripts
/
Peek.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1990-06-27
|
676b
|
27 lines
/* An example of using the dissidents rx_intui.library */
wind=GetWindow('hello',,,,,,,,)
IF wind == '' | wind == 0 THEN SAY 'Window open error'
err=SetDraw(wind,1,0,4)
/* Get Window's current PenA #, PenB #, and DrawMode. These are BYTEs. You */
/* must first find the window's Rastport. */
rastport=PEEK(wind,50,2)
penA=PEEK(rastport,25,0)
penB=PEEK(rastport,26,0)
drawmode=PEEK(rastport,28,0)
/* Print these values */
err=Text('penA = 'penA,wind,5,20)
err=Text('penB = 'penB,wind,5,28)
err=Text('drawmode = 'drawmode,wind,5,36)
class = 1
DO WHILE class > 0
spec=WaitMsg(wind)
PARSE var spec class part1 part2 part3
IF class == 3 THEN class = 0
END
err=EndWindow(wind)