Where can I get a good example of useful menu, you know, a good one that can be used as main menu with sub-options?
I use a menu system I wrote in clipper. I would be happy to put it up for anyone to use. Some of the code I think was assembler linked in for doing shadows on the menu but the exe program really runs just great now for 10 years.
Here are the specs and a link to the zip file.
This is an old program from ten years ago we still use today.
I had the drives on the novell network as
Drive G had a directory for each user. When the user signed in the directory for that
person was changed to the default. G:\nancy
A batch file on the F:\Public directory for that client was run to do this:
Nancy.bat
g:
cd\nancy
F:
CD\public
MENUBAT
Menubat is the start of the menu loop, it calls ccmenu.exe (the clipper menu program)
Menubat.bat
echo off
cls
G:
f:\public\ccmenu
g:USERBAT
The ccmenu.exe program reads the text file usermnu.mnu
usermnu.mnu
%Nancys Menu
Pic-Tic
pictic
New Billing
newbil
Mat-figure
matfgbat
Split
splitbat
Purchase Orders
purchbat
WORDPERFECT 5.1
wpbat
Materials/Stock
stockbat
Box Inventory
boxbat
Work in Process (NEW)
wipbat1
SHOP
shopbat
PACKING SLIPS
PKSBAT
SHIPPED
shipbat
Jobboard
jobb
menubat.exe reads in the text file usermnu.mnu and stores the text in usermnu.dbf
This file is used to scroll through the options.
The title "Nancys Menu" is preceded by a "%"
The next line is the menu option
the next line is the actual name of the batch file that calls your clipper program
located on drive F:\public
it creates a batch file called userbat.bat
userbat.bat For example if Jobboard above was selected the file would contain:
jobb
So jobb in this case would have the commands in it to run your clipper program
When ccmenu.exe quits it returns control to the original start of the loop, menubat.bat
and it is menubat.bat that calls the newly created userbat.bat that in turn calls your
batch program that in turn calls your clipper program.
Your batch file would look something like this:
jobb.bat
F:
CAPTURE Q=Lj4k_q /S=CCSRV1 /nb /NFF /C=1 /L=1 /ti=10
capture Q=lj4k_q /S=CCSRV1 /nb /nt /NFF /C=1 /L=2 /ti=10
CAPTURE Q=ok320_q /S=CCSRV1 /NB /nt /NFF /L=3 /TI=10
i:
cd\shopdata
jobb
menubat
Remember to put one last line that calls menubat.bat.
Your clipper program ends and returns to your batch file that called it
and you recall menubat as the last line of the menu loop.
I think that's about it.
The zip file is right here with all files needed includes the exe file too.
Just remember if you don't recompile and change the drive structure you will need:
G:\username
F:\public
but you can change them to anything you want if you recompile.
self extrcting zip file.
Use it any way you wish, freeware, actually my first freeware, hey cool!