home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
dirs
/
rexxintuition_463.lzh
/
RexxIntuition
/
RexxIntui.lzh
/
scripts
/
Screen.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1990-06-27
|
760b
|
21 lines
/* An example of using the dissidents rx_intui.library */
/* Open a custom screen with default width, height, depth=3, mode=HIRES */
screen=GetScreen('my Screen',,,,,,,)
IF screen == '' | screen == 0 THEN SAY 'Screen open error'
/* Open a window on this screen. Note that if the screen doesn't open, this */
/* will open on WB. Let it be the default IDCMP. */
wind=GetWindow('hello',screen,,,300,100,,,,)
IF wind == '' | wind == 0 THEN SAY 'Window open error'
/* Wait for - ANY - IDCMP message to drop us through */
msg=WaitMsg(wind)
/* Close the window, thus freeing any resources for it. */
err=EndWindow(wind)
/* Close the screen, thus freeing any resources for it. */
/* Note that if the screen didn't open, this does nothing */
err=EndScreen(screen)