home *** CD-ROM | disk | FTP | other *** search
- MENU MODULE DOCUMENTATION
-
- There's not a whole lot to be said about the MENU module. What it does is self
- evident. However, it presents a good example of the power of module format
- programming. MENU.MOD is a "workalike" to SlashBar, a fine little program
- written by Robert L. Hummel, that appeared in PC Magazine, Vol. 6, No. 10. To
- do its thing, MENU.MOD uses 982 bytes, plus the buffers used to save the menu
- file, incoming keystrokes, etc. To do almost the same thing, SlashBar uses
- 2024 bytes, plus the buffers, plus a 256 byte Program Segment Prefix, plus from
- 160 to 32,767 bytes of environment space!
-
- However, MENU.MOD can do things SlashBar cannot do. It can process "extended"
- ASCII codes and can change menu files "on the fly" (you've probably seen your
- drive light go on when selecting certain menu options). Without the file
- loading code (which allows menus to be split among several small files, thus
- saving a bunch of memory), and the ability to take 2 byte ASCII codes as input,
- MENU.MOD's (memory resident) size would be close to 800 bytes, far less than
- half the size of SlashBar. Now, I'm not that much better of a programmer than
- Mr. Hummel, but I had the VAST resources of ANSI.MOD to draw upon, and that
- made for the HUGE difference in size.
-
- Now YOU can get into the menu making act too. Mr. Hummel's MAKEBAR is a menu
- file "compiler", complete with its own (tiny) programming language, of about 10
- commands. It's the perfect way to start to learn programming, and to produce
- something useful within hours after you begin. The MAKEBAR/SlashBar package
- is available on many BBSes, or can be downloaded directly from PC Magazine's
- own BBS. I'm sure there are lots of helpful little "memory joggers" you'd
- like to be able to view at the touch of a key. A more advanced project would
- be to build your own phone book, and use ANSI.MOD's communications capability
- to dial the selected number for you. Also, you could "standardize" all your
- applications, by putting their command structures into menu files.
-
- MENU.MOD will accept menu files produced by MAKEBAR (the only change neces-
- sary, if you create a menu using MAKEBAR, use ALT-ENTER for CTRL-ENTER, MENU-
- .MOD interprets it as CTRL-ENTER), select the LOAD_A_MENU option, and load it
- into MENU.MOD's buffer. MENU.MOD is set up to handle menus no larger than 2000
- bytes (to save space). But, MENU.MOD's menu file buffer can be expanded to
- about 64,000 bytes, by adding /XXXX after the "POWERKIT.MNU" on the "LOAD ...
- MENU.MOD ..." line in your AUTOEXEC.BAT, or by typing:
-
- LOAD MENU.MOD MENU_NAME.MNU/XXXXX
-
- The XXXXX is the size you need for your menu file. Make sure to "UNLOAD"
- MENU.MOD, before "LOAD"ing it again with the new buffer size.
-
- THE MENUS:
-
- After you have become familiar with the POWERKIT II system, you will no longer
- need the menus that came with this package (you will also probably detach
- PKII.MOD's help screen, and save another almost 1000 bytes). What the menus do
- for you are obvious, with the possible exception of "TERMINAL MODE" on the MOD-
- EM menu. First, you can enter terminal mode, or just dial your phone without
- terminal mode, inside "most" programs. TERMINAL MODE creates two MACROS, ALT-t
- and ALT-x, then asks for a phone #. ALT-t turns on copy to and copy from the
- Modem (ALT-ESC 2 i, and ALT-ESC 3 i), and ALT-x turns them back off (ALT-ESC 4
- i, and ALT-ESC 7 i). After entering terminal mode (ALT-t), you may wish to
- clear the screen of what is being displayed by the application you are inside,
- so type ALT-ESC 2 J (don't worry, the screen will return after you press ALT-
- x, and press a few more keys; also, that "J" is upper case).
-
- Page 2
-
- All you need now for a basic communications package is a "back-scroller" to
- capture your online sessions as the data scroll off the screen (such a back-
- scroller is in a POWERKIT II module that also has a command line editor and a
- "cut & paste" facility, soon to be released), and a means for error-free trans-
- fer of files (you must be out of terminal mode, and at the DOS prompt, to use
- one of these, press ALT-x, then KEYPAD 5, E ). There are several good, stand-
- alone file transfer programs in the public domain.
-
- MENU won't work properly if you call it while terminal is active, so press ALT-
- x FIRST, then press ALT-t to return to terminal mode.
-
- Finally, you cannot use a single quote (') when using the MACROS menu to
- CREATE, DELETE, MOVE, or VIEW a MACRO.
-
-