home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
RCDO_C02.ZIP
/
RC-DO-C.TXT
< prev
next >
Wrap
Text File
|
1992-12-01
|
4KB
|
99 lines
Release 0.2
This file did not go through a spell checker.
RC-DO-C, is a VREXX command program that reads a .RC and .DLG file to create
a .C file.
It requires the VREXX package from IBM. Remember VREXX, REXX, and IBM
are trademarks of the International Business Machine Corporation. Get the
VREXX package from your favorite BBS. It's a nice little package.
To run RC-DO-C, simply type the command name. An optional .rc filename
may be passed as a parameter.
Example: RC-DO-C rccdo.rc.
Even if you enter a file name; the program will still prompt you for a file to read.
We'll fix it sometime later.
You will be presented with a list of radio buttons and two push buttons to
do the code thing. BTW, the CANCEL push button sometimes means
CANCEL othertimes it means END. While the OKAY button will mean
OKAY sometimes and others END. It's confusing but You should get the
hang of it.
The series of steps to follow are:
Select a file
Parse the file (We don't know why we didn't combine this with Select but we didn't).
Add Controls - This is followed by a whole bunch of dialog windows.
Create A C file.
There are two other steps (Save and Load RCC file) Use these if you want
to add more controls to a parsed file. BTW the parser is very weak and needs
lots of attention. So go gentle on it.
If you change your RC or DLG and the C file and you re-parse, you will loose
all changes to the C file.
Adding Controls - Multi Step Process.
Gives a list of all parse Windows and Dialogs.
Select one and press OKAY.
Gives a list on all controllable entities.
Select one and press OKAY.
Gives a list of 5 functions (end with warning and help are not complete)
Select one and press OKAY.
If you pick Start Win/DLG then
you get a list of all other Windows and Dialogs to start.
Select one and press OKAY.
Select another control when done press CANCEL.
Select antoher Window or Dialog when done press CANCEL
That's it in a nutshell. Good Luck and read on.
First, we apologize for not creating a INF file. So little time so much code write.
Second, we aplogize for no real documentation. Next release we promise.
Yeah, right.
Third, we tried to make the program use as intuitive as possible. Our intuition
is your obfuscation.
Fourth, If you want the next release, send $25.00 and floppy disk to:
American Coders, LTD
RC-DO-C Development Team
Post Office Box 97462
Raleigh, NC 27624
Fifth, If you have a question call us day or night at (919) 846-2014.
Sixth, we included several files. Here is a list:
RC-DO-C.TXT, this file
RC-DO-C.LIC, some license we ripped off the VREXX package.
RC-DO-C.CMD, the program.
RCCDO.RC, sample resource script.
RCCDO.DLG, sample resource dialog.
RCCDO.RES, sample RES file.
RCCDO.H, output from DIALOG generator.
RCCDO.C, C program generated from RC-DO-C.
RCCDO.ICO, sample ICON file.
RCCDO.EXE, sample executable.
Release 0.2 notes:
Added code to tract non-automatic RadioButtons and CheckBoxes.
In the C code you'll find two arrays to track these two types:
1. CheckBoxes - Each checkbox is represented as an element in the
cb array. If the box is checked then the element value is TRUE and if
box is unchecked then the element value is FALSE.
2. RadioButtons - Each dialog is represented as an element in the
rb array. If one of the dialog buttons is checked then the value of
that radio button is the value of the dialogs position in the rb array.
If you need to have more than one group of radio buttons in a dialog,
then add a new element to enum list of dialog-radiobuttons and change
the CONTROL logic in the dialog procedure.