davidclue wrote:
Hi I was wondering if anybody can help me, basically I wan't to know if you can make a menu title take up multiple lines like you can with the Display command.
Example with Display command: :Disp "First Line","Second Line","Third Line"
Well, you could create a menu loop (and use Output( instead of Disp).
Code:
1->X
Output(1,2,"Option 1"
Output(2,2,"Option 2"
Output(3,2,"Option 3"
//etc
Repeat K=105
getKey->K
If Ans
Output(X,1,"_" //one space
X+(K=34)(X>1)-(K=25)(X<8->X
Output(X,1,">"
End
Then you would add If statements to check where the cursor was:
Code:
If X=1:Goto 1
If X=2:Goto 2
If X=3:Goto 3
//etc
Then you would add your labels:
Code:
Lbl 1
//code
Lbl 2
//more code
Lbl 3
//you get the idea
All together, that gives us:
Code:
2->X
Output(1,2,"Option 1"
Output(2,2,"Option 2"
Output(3,2,"Option 3"
//etc
Repeat K=105
getKey->K
If Ans
Output(X,1,"_" //one space
X+(K=34)(X>1)-(K=25)(X<8->X
Output(X,1,">"
End
If X=1:Goto 1
If X=2:Goto 2
If X=3:Goto 3
Lbl 1
//code
Lbl 2
//more code
Lbl 3
//you get the idea
Keep in mind that anything preceded by a "//" is a comment, and should not be typed in.