home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
libraries
/
rexxintuition_463
/
scripts
/
text.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1991-02-07
|
869b
|
30 lines
/* An example of using the dissidents rx_intui.library */
/* Open a window on WB. Let it be the default IDCMP. */
wind=GetWindow('Printing text to the window',,,,,,,,,)
IF wind == '' | wind == 0 THEN SAY 'Window open error'
/* Print a message */
mytext = 'Close window to see message clear'
err=Text(mytext,wind,10,40)
/* Wait for - ANY - IDCMP message to drop us through */
msg=WaitMsg(wind)
/* Erase that message. Note that it was 33 characters long */
err=Erase(33,wind,10,40)
/* Print a message one line down. Note that the default font is 8 pixels high */
mytext = 'Line #2 '
err=Text(mytext,wind,10,40+8)
/* Print from where the previous print left off. */
mytext = 'more text'
err=Text(mytext,wind,,)
/* Wait for - ANY - IDCMP message to drop us through */
msg=WaitMsg(wind)
/* Close the window, thus freeing any resources for it. */
err=EndWindow(wind)