07-02-2006, 09:02 PM
Hey, it's me again! I have a somewhat lesser and unimportant problem that in no way will have a big problem in the final program, as I have an alternative way that works. So here's the lowdown on what I would like this section of the program to do: I would like the program to display the menu with one of the selections highlighted in blue. When you press an arrow key, in order to bring up the menu, the menu comes up with the first option highlighted as it should be. However from that point on when I try to use the arrow keys to change the selection it simply remains the same screen!
Here is the code:
thanks for any help you can give!
EclipseOTO
Here is the code:
Code:
Menu1: WHILE INKEY$ = ""
WEND
Key$ = INKEY$
IF Key$ = CHR$(0) + CHR$(72) THEN LET menu% = menu% - 1
IF menu% = 0 THEN LET menu% = 1
IF Key$ = CHR$(0) + CHR$(80) THEN LET menu% = menu% + 1
IF menu% = 6 THEN LET menu% = 5
IF Key$ = CHR$(0) + CHR$(77) THEN GOTO selection
CLS
COLOR 4, 0, 0
PRINT "Spanish Helper Version 1.1"
COLOR 7, 0, 0
IF menu% = 1 THEN COLOR 7, 1, 0 ELSE COLOR 7, 0, 0
PRINT "1) Origin"
IF menu% = 2 THEN COLOR 7, 1, 0 ELSE COLOR 7, 0, 0
PRINT "2) Continue"
IF menu% = 3 THEN COLOR 7, 1, 0 ELSE COLOR 7, 0, 0
PRINT "3) Data wipe"
IF menu% = 4 THEN COLOR 7, 1, 0 ELSE COLOR 7, 0, 0
PRINT "4) Reference"
IF menu% = 5 THEN COLOR 7, 1, 0 ELSE COLOR 7, 0, 0
PRINT "5) Exit"
PRINT Key$
PRINT "Poopy Toopy"
GOTO Menu1
selection: IF menu% = 1 THEN GOTO origin
IF menu% = 2 THEN GOTO writer
IF menu% = 3 THEN GOTO wipe
IF menu% = 4 THEN GOTO ref
IF menu% = 5 THEN END
thanks for any help you can give!
EclipseOTO