home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
PUCLMENU.ARC
/
PUCLMENU.PRG
< prev
Wrap
Text File
|
1987-03-10
|
11KB
|
370 lines
*
* Penultimate Clipper Menu Program. (Version .999999)
* By Henry J. Franzoni III
* No rights reserved.
* Released into the public domain 03/10/87.
* There is no assurance that this will work work any specific purpose.
* I am not responsible for any damages resulting from the use of this code.
* Clipper is a trademark of Nantucket, Inc.
*
SET SCOREBOARD OFF
SET CONFIRM OFF
SET TALK OFF
PUBL MSCOLO,SCOLOR,MENULEN,LEVEL1,LEVEL2,FRAM2
MENULEN= 1 && MEMVAR FOR MENU LENGTH
LEVEL1 = 1 && MEMVAR FOR 1ST MENU
LEVEL2 = 1 && MEMVAR FOR NESTED MENUS
MSCOLO=IIF (ISCOLOR(), 'GR+/B,W+/R,N+,,R/W','W+/N,N/W,N+,,I')
SCOLOR=IIF (ISCOLOR(), 'N/BG,W+/BR,N+,,RB+/W','N/W,W+/N,N+,,I')
FRAM2=CHR(201)+CHR(205)+CHR(187)+CHR(186)+CHR(188)+CHR(205)+CHR(200)+CHR(186)+CHR(32)
SET COLO TO &MSCOLO
SET MESSAGE TO
DO WHIL (LEVEL1 != 0)
IF LASTKEY()=27
ELSE
SET COLO TO &MSCOLO
@ 2,0 CLEA
SET COLO TO &SCOLOR
@ 24,0 SAY SPAC(80)
SET COLO TO &MSCOLO
ENDI
@ 0,0 SAY SPAC(25)+"ADJUSTABLE CLIPPER MASTER MENU"+SPAC(25)
@ 1,0 PROMPT "Database Access " MESSAGE ""
@ 1,16 PROMPT "Report on Data " MESSAGE ""
@ 1,32 PROMPT "Set System Opts " MESSAGE ""
@ 1,48 PROMPT "Enter New Info " MESSAGE ""
@ 1,64 PROMPT "Utilities Menu " MESSAGE ""
MENU TO LEVEL1
IF (LEVEL1 != 0) && ESC TO EXIT
DO CASE
CASE LEVEL1=1
MENULEN=12
CASE LEVEL1=2
MENULEN=22
CASE LEVEL1=3
MENULEN=22
CASE LEVEL1=4
MENULEN=22
CASE LEVEL1=5
MENULEN=22
ENDC
SET MESSAGE TO 24
DO SUB_MENU WITH LEVEL1-1
SET MESSAGE TO
ENDI
ENDD
RETU
*
PROC SUB_MENU
PARA MENU_NUMBER
SET COLO TO &SCOLOR
IF MENU_NUMBER!=0
@ 2,((MENU_NUMBER*16)-1),MENULEN,(((MENU_NUMBER+1)*16)-1) BOX FRAM2
ELSE
@ 2,0,MENULEN,15 BOX FRAM2
ENDI
DO CASE
CASE MENU_NUMBER=0
@ 3,1 PROMPT "A Choice # 1 " MESSAGE "Help msg 1"
@ 4,1 PROMPT "B Choice # 2 " MESSAGE "Help msg 2"
@ 5,1 PROMPT "C Choice # 3 " MESSAGE "Help msg 3"
@ 6,1 PROMPT "D Choice # 4 " MESSAGE "Help msg 4"
@ 7,1 PROMPT "E Choice # 5 " MESSAGE "Help msg 5"
@ 8,1 PROMPT "F Choice # 6 " MESSAGE "Help msg 6"
@ 9,1 PROMPT "G Choice # 7 " MESSAGE "Help msg 7"
@ 10,1 PROMPT "H Choice # 8 " MESSAGE "Help msg 8"
@ 11,1 PROMPT "I Choice # 9 " MESSAGE "Help msg 9"
CASE MENU_NUMBER=1
@ 3, MENU_NUMBER*16 PROMPT "A Choice # 1 " MESSAGE "Help msg 1"
@ 4, MENU_NUMBER*16 PROMPT "B Choice # 2 " MESSAGE "Help msg 2"
@ 5, MENU_NUMBER*16 PROMPT "C Choice # 3 " MESSAGE "Help msg 3"
@ 6, MENU_NUMBER*16 PROMPT "D Choice # 4 " MESSAGE "Help msg 4"
@ 7, MENU_NUMBER*16 PROMPT "E Choice # 5 " MESSAGE "Help msg 5"
@ 8, MENU_NUMBER*16 PROMPT "F Choice # 6 " MESSAGE "Help msg 6"
@ 9, MENU_NUMBER*16 PROMPT "G Choice # 7 " MESSAGE "Help msg 7"
@ 10, MENU_NUMBER*16 PROMPT "H Choice # 8 " MESSAGE "Help msg 8"
@ 11, MENU_NUMBER*16 PROMPT "I Choice # 9 " MESSAGE "Help msg 9"
@ 12, MENU_NUMBER*16 PROMPT "J Choice # 10 " MESSAGE "Help msg 10"
@ 13, MENU_NUMBER*16 PROMPT "K Choice # 11 " MESSAGE "Help msg 11"
@ 14, MENU_NUMBER*16 PROMPT "L Choice # 12 " MESSAGE "Help msg 12"
@ 15, MENU_NUMBER*16 PROMPT "M Choice # 13 " MESSAGE "Help msg 13"
@ 16, MENU_NUMBER*16 PROMPT "N Choice # 14 " MESSAGE "Help msg 14"
@ 17, MENU_NUMBER*16 PROMPT "O Choice # 15 " MESSAGE "Help msg 15"
@ 18, MENU_NUMBER*16 PROMPT "P Choice # 16 " MESSAGE "Help msg 16"
@ 19, MENU_NUMBER*16 PROMPT "Q Choice # 17 " MESSAGE "Help msg 17"
@ 20, MENU_NUMBER*16 PROMPT "R Choice # 18 " MESSAGE "Help msg 18"
@ 21, MENU_NUMBER*16 PROMPT "S Choice # 19 " MESSAGE "Help msg 19"
CASE MENU_NUMBER=2
@ 3, MENU_NUMBER*16 PROMPT "A Choice # 1 " MESSAGE "Help msg 1"
@ 4, MENU_NUMBER*16 PROMPT "B Choice # 2 " MESSAGE "Help msg 2"
@ 5, MENU_NUMBER*16 PROMPT "C Choice # 3 " MESSAGE "Help msg 3"
@ 6, MENU_NUMBER*16 PROMPT "D Choice # 4 " MESSAGE "Help msg 4"
@ 7, MENU_NUMBER*16 PROMPT "E Choice # 5 " MESSAGE "Help msg 5"
@ 8, MENU_NUMBER*16 PROMPT "F Choice # 6 " MESSAGE "Help msg 6"
@ 9, MENU_NUMBER*16 PROMPT "G Choice # 7 " MESSAGE "Help msg 7"
@ 10, MENU_NUMBER*16 PROMPT "H Choice # 8 " MESSAGE "Help msg 8"
@ 11, MENU_NUMBER*16 PROMPT "I Choice # 9 " MESSAGE "Help msg 9"
@ 12, MENU_NUMBER*16 PROMPT "J Choice # 10 " MESSAGE "Help msg 10"
@ 13, MENU_NUMBER*16 PROMPT "K Choice # 11 " MESSAGE "Help msg 11"
@ 14, MENU_NUMBER*16 PROMPT "L Choice # 12 " MESSAGE "Help msg 12"
@ 15, MENU_NUMBER*16 PROMPT "M Choice # 13 " MESSAGE "Help msg 13"
@ 16, MENU_NUMBER*16 PROMPT "N Choice # 14 " MESSAGE "Help msg 14"
@ 17, MENU_NUMBER*16 PROMPT "O Choice # 15 " MESSAGE "Help msg 15"
@ 18, MENU_NUMBER*16 PROMPT "P Choice # 16 " MESSAGE "Help msg 16"
@ 19, MENU_NUMBER*16 PROMPT "Q Choice # 17 " MESSAGE "Help msg 17"
@ 20, MENU_NUMBER*16 PROMPT "R Choice # 18 " MESSAGE "Help msg 18"
@ 21, MENU_NUMBER*16 PROMPT "S Choice # 19 " MESSAGE "Help msg 19"
CASE MENU_NUMBER=3
@ 3, MENU_NUMBER*16 PROMPT "A Choice # 1 " MESSAGE "Help msg 1"
@ 4, MENU_NUMBER*16 PROMPT "B Choice # 2 " MESSAGE "Help msg 2"
@ 5, MENU_NUMBER*16 PROMPT "C Choice # 3 " MESSAGE "Help msg 3"
@ 6, MENU_NUMBER*16 PROMPT "D Choice # 4 " MESSAGE "Help msg 4"
@ 7, MENU_NUMBER*16 PROMPT "E Choice # 5 " MESSAGE "Help msg 5"
@ 8, MENU_NUMBER*16 PROMPT "F Choice # 6 " MESSAGE "Help msg 6"
@ 9, MENU_NUMBER*16 PROMPT "G Choice # 7 " MESSAGE "Help msg 7"
@ 10, MENU_NUMBER*16 PROMPT "H Choice # 8 " MESSAGE "Help msg 8"
@ 11, MENU_NUMBER*16 PROMPT "I Choice # 9 " MESSAGE "Help msg 9"
@ 12, MENU_NUMBER*16 PROMPT "J Choice # 10 " MESSAGE "Help msg 10"
@ 13, MENU_NUMBER*16 PROMPT "K Choice # 11 " MESSAGE "Help msg 11"
@ 14, MENU_NUMBER*16 PROMPT "L Choice # 12 " MESSAGE "Help msg 12"
@ 15, MENU_NUMBER*16 PROMPT "M Choice # 13 " MESSAGE "Help msg 13"
@ 16, MENU_NUMBER*16 PROMPT "N Choice # 14 " MESSAGE "Help msg 14"
@ 17, MENU_NUMBER*16 PROMPT "O Choice # 15 " MESSAGE "Help msg 15"
@ 18, MENU_NUMBER*16 PROMPT "P Choice # 16 " MESSAGE "Help msg 16"
@ 19, MENU_NUMBER*16 PROMPT "Q Choice # 17 " MESSAGE "Help msg 17"
@ 20, MENU_NUMBER*16 PROMPT "R Choice # 18 " MESSAGE "Help msg 18"
@ 21, MENU_NUMBER*16 PROMPT "S Choice # 19 " MESSAGE "Help msg 19"
CASE MENU_NUMBER=4
@ 3, MENU_NUMBER*16 PROMPT "A Choice # 1 " MESSAGE "Help msg 1"
@ 4, MENU_NUMBER*16 PROMPT "B Choice # 2 " MESSAGE "Help msg 2"
@ 5, MENU_NUMBER*16 PROMPT "C Choice # 3 " MESSAGE "Help msg 3"
@ 6, MENU_NUMBER*16 PROMPT "D Choice # 4 " MESSAGE "Help msg 4"
@ 7, MENU_NUMBER*16 PROMPT "E Choice # 5 " MESSAGE "Help msg 5"
@ 8, MENU_NUMBER*16 PROMPT "F Choice # 6 " MESSAGE "Help msg 6"
@ 9, MENU_NUMBER*16 PROMPT "G Choice # 7 " MESSAGE "Help msg 7"
@ 10, MENU_NUMBER*16 PROMPT "H Choice # 8 " MESSAGE "Help msg 8"
@ 11, MENU_NUMBER*16 PROMPT "I Choice # 9 " MESSAGE "Help msg 9"
@ 12, MENU_NUMBER*16 PROMPT "J Choice # 10 " MESSAGE "Help msg 10"
@ 13, MENU_NUMBER*16 PROMPT "K Choice # 11 " MESSAGE "Help msg 11"
@ 14, MENU_NUMBER*16 PROMPT "L Choice # 12 " MESSAGE "Help msg 12"
@ 15, MENU_NUMBER*16 PROMPT "M Choice # 13 " MESSAGE "Help msg 13"
@ 16, MENU_NUMBER*16 PROMPT "N Choice # 14 " MESSAGE "Help msg 14"
@ 17, MENU_NUMBER*16 PROMPT "O Choice # 15 " MESSAGE "Help msg 15"
@ 18, MENU_NUMBER*16 PROMPT "P Choice # 16 " MESSAGE "Help msg 16"
@ 19, MENU_NUMBER*16 PROMPT "Q Choice # 17 " MESSAGE "Help msg 17"
@ 20, MENU_NUMBER*16 PROMPT "R Choice # 18 " MESSAGE "Help msg 18"
@ 21, MENU_NUMBER*16 PROMPT "S Choice # 19 " MESSAGE "Help msg 19"
ENDC
SET KEY 19 TO LEFT_ARROW
SET KEY 4 TO RIGHT_ARROW
MENU TO LEVEL2
SET KEY 19 TO
SET KEY 4 TO
DO CASE
CASE MENU_NUMBER=0
DO CASE
CASE LEVEL2=1
*DO SOMETHING
CASE LEVEL2=2
*DO SOMETHING
CASE LEVEL2=3
*DO SOMETHING
CASE LEVEL2=4
*DO SOMETHING
CASE LEVEL2=5
*DO SOMETHING
CASE LEVEL2=6
*DO SOMETHING
CASE LEVEL2=7
*DO SOMETHING
CASE LEVEL2=8
*DO SOMETHING
CASE LEVEL2=9
*DO SOMETHING
ENDC
CASE MENU_NUMBER=1
DO CASE
CASE LEVEL2=1
*DO SOMETHING
CASE LEVEL2=2
*DO SOMETHING
CASE LEVEL2=3
*DO SOMETHING
CASE LEVEL2=4
*DO SOMETHING
CASE LEVEL2=5
*DO SOMETHING
CASE LEVEL2=6
*DO SOMETHING
CASE LEVEL2=7
*DO SOMETHING
CASE LEVEL2=8
*DO SOMETHING
CASE LEVEL2=9
*DO SOMETHING
CASE LEVEL2=10
*DO SOMETHING
CASE LEVEL2=11
*DO SOMETHING
CASE LEVEL2=12
*DO SOMETHING
CASE LEVEL2=13
*DO SOMETHING
CASE LEVEL2=14
*DO SOMETHING
CASE LEVEL2=15
*DO SOMETHING
CASE LEVEL2=16
*DO SOMETHING
CASE LEVEL2=17
*DO SOMETHING
CASE LEVEL2=18
*DO SOMETHING
CASE LEVEL2=19
*DO SOMETHING
ENDC
CASE MENU_NUMBER=2
DO CASE
CASE LEVEL2=1
*DO SOMETHING
CASE LEVEL2=2
*DO SOMETHING
CASE LEVEL2=3
*DO SOMETHING
CASE LEVEL2=4
*DO SOMETHING
CASE LEVEL2=5
*DO SOMETHING
CASE LEVEL2=6
*DO SOMETHING
CASE LEVEL2=7
*DO SOMETHING
CASE LEVEL2=8
*DO SOMETHING
CASE LEVEL2=9
*DO SOMETHING
CASE LEVEL2=10
*DO SOMETHING
CASE LEVEL2=11
*DO SOMETHING
CASE LEVEL2=12
*DO SOMETHING
CASE LEVEL2=13
*DO SOMETHING
CASE LEVEL2=14
*DO SOMETHING
CASE LEVEL2=15
*DO SOMETHING
CASE LEVEL2=16
*DO SOMETHING
CASE LEVEL2=17
*DO SOMETHING
CASE LEVEL2=18
*DO SOMETHING
CASE LEVEL2=19
*DO SOMETHING
ENDC
CASE MENU_NUMBER=3
DO CASE
CASE LEVEL2=1
*DO SOMETHING
CASE LEVEL2=2
*DO SOMETHING
CASE LEVEL2=3
*DO SOMETHING
CASE LEVEL2=4
*DO SOMETHING
CASE LEVEL2=5
*DO SOMETHING
CASE LEVEL2=6
*DO SOMETHING
CASE LEVEL2=7
*DO SOMETHING
CASE LEVEL2=8
*DO SOMETHING
CASE LEVEL2=9
*DO SOMETHING
CASE LEVEL2=10
*DO SOMETHING
CASE LEVEL2=11
*DO SOMETHING
CASE LEVEL2=12
*DO SOMETHING
CASE LEVEL2=13
*DO SOMETHING
CASE LEVEL2=14
*DO SOMETHING
CASE LEVEL2=15
*DO SOMETHING
CASE LEVEL2=16
*DO SOMETHING
CASE LEVEL2=17
*DO SOMETHING
CASE LEVEL2=18
*DO SOMETHING
CASE LEVEL2=19
*DO SOMETHING
ENDC
CASE MENU_NUMBER=4
DO CASE
CASE LEVEL2=1
*DO SOMETHING
CASE LEVEL2=2
*DO SOMETHING
CASE LEVEL2=3
*DO SOMETHING
CASE LEVEL2=4
*DO SOMETHING
CASE LEVEL2=5
*DO SOMETHING
CASE LEVEL2=6
*DO SOMETHING
CASE LEVEL2=7
*DO SOMETHING
CASE LEVEL2=8
*DO SOMETHING
CASE LEVEL2=9
*DO SOMETHING
CASE LEVEL2=10
*DO SOMETHING
CASE LEVEL2=11
*DO SOMETHING
CASE LEVEL2=12
*DO SOMETHING
CASE LEVEL2=13
*DO SOMETHING
CASE LEVEL2=14
*DO SOMETHING
CASE LEVEL2=15
*DO SOMETHING
CASE LEVEL2=16
*DO SOMETHING
CASE LEVEL2=17
*DO SOMETHING
CASE LEVEL2=18
*DO SOMETHING
CASE LEVEL2=19
*DO SOMETHING
ENDC
ENDC
@ 24,0 SAY SPAC(80)
SET COLO TO &MSCOLO
IF LASTKEY()=27
IF MENU_NUMBER!=0
@ 2,((MENU_NUMBER*16)-1),MENULEN,(((MENU_NUMBER+1)*16)-1) BOX ""
ELSE
@ 2,0,MENULEN,15 BOX ""
ENDI
ENDI
RETU
*
PROC LEFT_ARROW
PARA PN, PL, RV
KEYBOARD CHR(27) + CHR(5) + CHR(13)
RETU
*
PROC RIGHT_ARROW
PARA PN, PL, RV
KEYBOARD CHR(27) + CHR(4) + CHR(13)
RETU