home *** CD-ROM | disk | FTP | other *** search
- /* 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)
-