home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
maj
/
436
/
menu.bas
< prev
next >
Wrap
BASIC Source File
|
1993-02-20
|
2KB
|
63 lines
REM $INCLUDE: 'qlib.bi'
DIM a$(25)
LOCATE 2, 2
FOR i = 0 TO 25: READ a$(i): NEXT
REM first main heading
DATA "Critters"
DATA "Hawks"
DATA "Marmots"
DATA "Pygmy Tundra Buffalo"
DATA "Collared Pika"
DATA "Swine"
REM NUL string separates main headings
DATA ""
REM 2nd main heading
DATA "Habitats"
DATA "Alpine tundra"
DATA "Forest edges"
DATA "Pelagic"
DATA "Urban"
DATA ""
DATA "Nothing"
DATA ""
DATA "Vegetation"
DATA "Deciduous forest"
DATA "Cattail marsh"
DATA "Dense brush"
DATA "Moss and Lichens"
DATA "Sagebrush"
DATA "Chapparal"
DATA "Prarie"
DATA "Temparate Rain Forest"
REM double NUL strings mark end
DATA "",""
CALL MenuOPtion(0, 23) ' text color
CALL MenuOPtion(1, 30) ' menu choice color
CALL MenuOPtion(2, 31) ' menu box color
CALL MenuOPtion(3, 13)
CALL MenuOPtion(4, 256 + 68) ' optional exit key
CALL MenuOPtion(5, -1) ' exit menu when hotkey pressed
mainchoice = 0: subchoice = 0
a = VARPTR(a$(0))
a = pulldown(a, mainchoice, subchoice)
SELECT CASE a
CASE 13
key$ = "Enter"
CASE 27
key$ = "Escape"
CASE ELSE
END SELECT
SELECT CASE mainchoice
CASE 0
main$ = "Critters"
CASE 1
main$ = "habitats"
CASE 2
main$ = "nothing"
CASE 3
main$ = "Vegetation"
END SELECT
SCREEN 0
PRINT key$, main$, subchoice