home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
vrexx_2.zip
/
VREXX2.DOC
< prev
Wrap
Text File
|
1994-01-19
|
2KB
|
67 lines
VREXX
VREXX is Visual REXX for OS/2 Presentation Manager! VREXX allows you to
write standard OS/2 REXX command files which can create and control PM windows.
VREXX also dynamically constructs dialog boxes which allow filename selection,
font and color selection, string input, and message display. Other functions
allow selection of items through listbox, radiobutton and checkbox dialogs.
VREXX also supports graphical text output in 14 different fonts, as well as
pixel, marker, polyline, polygon, spline and arc drawing functions.
You DO NOT need to be a PM programmer to use VREXX! Here is a complete
VREXX hello world program, with an additional message box at the end:
-------------------------------------------------------------------------------
/* HELLO.CMD */
/* initialize VREXX external functions */
'@echo off'
call RXFUNCADD 'VInit', 'VREXX', 'VINIT'
initcode = VInit()
if initcode = 'ERROR' then signal CLEANUP
signal on failure name CLEANUP
signal on halt name CLEANUP
signal on syntax name CLEANUP
/* do hello, world window */
position.left = 25 /* put window in the center of the screen */
position.bottom = 25 /* coordinates are % of screen */
position.right = 75
position.top = 75
/* open the window and draw the text string */
id = VOpenWindow('My VREXX Window', 'WHITE', position)
call VSay id, 300, 500, 'Hello, world'
/* put up a 1 line message box - when user presses ok, end the program */
msg.0 = 1
msg.1 = 'Press OK to end the HELLO.CMD program'
call VMsgBox 'HELLO.CMD', msg, 1
call VCloseWindow id
CLEANUP:
call VExit /* terminate VREXX */
exit
-------------------------------------------------------------------------------
Run the procedure just like any other REXX procedure, by typing
hello
or
start hello.cmd
at an OS/2 command prompt. On-line help is available by typing:
view vrexx.inf
VREXX was written by Richard B. Lam at the IBM T.J. Watson Research Center.