home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / rexxintuition_463.lzh / RexxIntuition / RexxIntui.lzh / scripts / Wind.rexx < prev   
OS/2 REXX Batch file  |  1990-06-27  |  545b  |  17 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('hello',,,,,,,,)
  5. IF wind == '' | wind == 0 THEN SAY 'Window open error'
  6.  
  7. /* Wait for - ANY - IDCMP message to drop us through */
  8. /* Note that if no window opened, this returns a null string '' immediately */
  9. spec=WaitMsg(wind)
  10.  
  11. /* Print out the IDCMP spec to the CLI */
  12. SAY spec
  13.  
  14. /* Close the window, thus freeing any resources for it. */
  15. /* Note that if no window opened, this does nothing. */
  16. err=EndWindow(wind)
  17.