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"
You could create a custom menu that scrolls horizontally.
You should seriously take a look at This resource. It has all the commands and syntaxes you'll ever need to know for Basic.
Just hit Ctrl+F and type "menu", Bam! The menu command pops up. Very Happy

Also, the search bar in the corner is there for a reason Wink
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.

Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement