home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
misc
/
cp
/
demo.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-02-27
|
1KB
|
75 lines
/* */
trace on
options results
signal on break_c
signal on error
NAME = "DEMO"
k = 0
address command
if(~show('p',NAME)) then do
'cp font topaz fs 8 myname ' NAME /* Use MYNAME to create REXX Port */
do while (~show('p',NAME))
call delay 50
k = k+1
if k > 10 then exit(10)
end
end
else do
say NAME 'already running'
exit(1)
end
address value NAME
TEXT '100 60 Welcome to cP demo'
DELAY '10'
TEXT '100 100 This program and source code are PUBLIC DOMAIN and FREEWARE'
TEXT '100 120 Feel free to make good use of it'
DELAY '10'
TEXT '100 140 There are no guarantees with cP'
TEXT '100 160 However we know of no bugs or problems at this time'
VERTTEXT '50 200 by Chris Conger and SAIC'
DELAY '300'
ADD 'sample.asc'
ADD 'sample.bez'
XLABEL 'seconds'
YLAB 'volts'
NOFILENAMEBOXES
NOCPANEL
FULL
DELAY '100'
TEXT '100 30 You can put symbols on datafiles'
SYM
DELAY '50'
GRID
LOGX
NOSYM
FULL
TEXT '100 30 cP can do LOG and Semi-LOG plots'
DELAY '75'
LINX
YMIN '-1'
YMAX '4'
XMIN '2e-5'
XMAX '1e-4'
REDRAW
TEXT '100 30 cP can Zoom in and out'
DELAY '50'
CPANEL
FULL
TEXT '100 20 any bugs should be reported to congerc@abqa.saic.com'
DELAY '100'
TEXT '100 40 press Q to quit or continue to play with cP'
exit(0)
break_c:
exit(5)
error:
exit(10)
exit