home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- WMCG
- July 11, 1989
-
-
- Window / Menu Code Generator
-
- The Window / Menu Code Generator is a tool developed
- for use with Turbo Pascal 4.0/5.X - Turbo Basic 1.0/1.1
- and TPW73 - TBW73 window and menu utilities to facilitate
- the design and coding of windows and menus. Currently the
- program supports windows and vertical menus. A future
- version will contain support for horizontal menus.
-
- To start the program enter WMCG from the command line.
- The program will autodetect what type of monitor you have
- and what mode you are operating in and will initialize
- itself accordingly. General navigation through the menus
- is accomplished with the arrow keys. Enter will select a
- function and Esc will cancel the current activity and back
- you up one level.
-
- The opening screen will advise you of what type
- monitor and mode you are presently running in. If you
- wish to by-pass this screen just press enter.
-
- There are several menu selections that will not be
- available until data has been entered. You must first
- enter the window parameters. The descriptions follow
- closely the descriptions used in the documentation. When
- you have completed describing your window press ESC to
- return to the menu. At this point, if you have entered
- any data that would not create a valid window, an error
- message is displayed and you are given the opportunity to
- return to the edit screen to make the necessary
- corrections.
-
- Once a valid window is created you have several
- options available as indicated by the changes in the
- menus. In addition the Edit command in the Vertical Menus
- selections will be enabled. A brief description of each
- of the Windows selections follows:
-
- View
- Clears the screen and displays the window as you have
- described it.
-
- Edit
- Return to the parameter input screen to make
- alterations to the parameters.
-
-
-
-
-
-
- WMCG Copyright (c) 1988 Richard D. Fothergill
-
- - 1 -
-
-
-
-
-
-
-
-
- Save
- Writes the code required to generate the window as you
- have described it. When save is selected a second menu
- appears requesting what language you would like the code
- formated for. The code is written to a file named
- WINDOWS.TXT in plain ASCII code. You can then read the
- file directly into your editor and move it to where you
- wish.
-
- Clear
- Resets all of the window variables to 0 and erases all
- of the Title strings. You are given an opportunity to
- abort this operation without clearing the parameters.
- Clearing the parameters will disable the view and save
- functions until valid parameters are reentered. It will
- also disable all but the Clear command in the Vertical
- Menus selections.
-
- MENUS
-
- If you are designing a menu you must define the window
- that the menu will appear in. Until you have defined a
- valid window the Edit menu parameters option will not be
- available to you. Once a valid window is available you
- may then access the edit parameters screen. Again the
- descriptions closely follow the documentation. After
- entering your data, pressing ESC will return you to the
- selections menu. Here again, some variable checking is
- done, and if something doesn't look correct you will get
- an error message and the opportunity to correct them.
- Once valid data is available all menu selections will be
- enabled. A brief description of those follow:
-
- View
- Clears the screen and displays the menu as you have
- described it. The arrow keys will perform as they would
- in a real menu and Esc will return you to the selections
- menu.
-
- Edit
- Return to the parameter input screen to make
- alterations.
-
- Save
- When selected will request which language to use.
- Then you will be presented a screen requesting names to
- use within the code generated. This option will create a
- plain ASCII text file using the file name given. It will
- then write a skeleton program that can be loaded directly
- into your editor, compiled and run. It creates a
- procedure called Initmenu which when called initializes
- the vmenurec to the Menu name given. It then creates a
- procedure by the name given for Procedure name. This
- procedure contains the skeleton code for using the menu as
-
- WMCG Copyright (c) 1988 Richard D. Fothergill
-
- - 2 -
-
-
-
-
-
-
-
-
- you have described it. Basically all you have to do is
- insert you code for each of the case statements and you
- have a fully functional program. Or, as will probable be
- the case, you can incorporate the code into your program.
-
- Clear
- Resets all of the menu variables to 0 and erases all
- of the Item strings. You are given an opportunity to
- abort this operation without clearing the parameters.
- Clearing the parameters will disable the view and save
- functions within the menu selections until valid
- parameters are reentered.
-
- WARRANTY AND DISCLAIMER
-
- The author make no warranties, expressed or implied,
- as to the quality or performance of this program. The
- author will not be held liable for any direct, indirect,
- incidental or consequential damages resulting from the use
- of this program. Your use of this program constitutes
- your agreement to this disclaimer and your release of the
- author from any form of liability or litigation.
-
-
- If you are using TPWCM and find it of value a
- contribution ($10.00) to the author is suggested. This
- will enable and encourage the further development of
- TPWCM.
-
-
-
- Rick Fothergill BBS - (413) 499-7245
- 141 Oak Hill Road 300-1200-2400 baud 8-N-1
- Pittsfield, MA 01201
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- WMCG Copyright (c) 1988 Richard D. Fothergill
-
- - 3 -
-
-
-