home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / rexxintuition_463.lzh / RexxIntuition / RexxIntui.lzh / scripts / text.rexx < prev    next >
OS/2 REXX Batch file  |  1991-02-07  |  869b  |  30 lines

  1. /* An example of using the dissidents rx_intui.library */
  2.  
  3. /* Open a window on WB. Let it be the default IDCMP. */
  4. wind=GetWindow('Printing text to the window',,,,,,,,,)
  5. IF wind == '' | wind == 0 THEN SAY 'Window open error'
  6.  
  7. /* Print a message */
  8. mytext = 'Close window to see message clear'
  9. err=Text(mytext,wind,10,40)
  10.  
  11. /* Wait for - ANY - IDCMP message to drop us through */
  12. msg=WaitMsg(wind)
  13.  
  14. /* Erase that message. Note that it was 33 characters long */
  15. err=Erase(33,wind,10,40)
  16.  
  17. /* Print a message one line down. Note that the default font is 8 pixels high */
  18. mytext = 'Line #2 '
  19. err=Text(mytext,wind,10,40+8)
  20.  
  21. /* Print from where the previous print left off. */
  22. mytext = 'more text'
  23. err=Text(mytext,wind,,)
  24.  
  25. /* Wait for - ANY - IDCMP message to drop us through */
  26. msg=WaitMsg(wind)
  27.  
  28. /* Close the window, thus freeing any resources for it. */
  29. err=EndWindow(wind)
  30.