Making Menus

From Shopbot Wiki

(Difference between revisions)
Current revision (18:41, 8 February 2008) (edit) (undo)
 
Line 1: Line 1:
-
 
You can create a "Pseudo-menu" using the PRINT command to create a table of options in the message window so that the operator can read them, and then get their selection using the INPUT command.
You can create a "Pseudo-menu" using the PRINT command to create a table of options in the message window so that the operator can read them, and then get their selection using the INPUT command.
-
 
:''PRINT "Cutting options"
:''PRINT "Cutting options"
Line 23: Line 21:
-
and here's how the INPUT statement that goes with it would appear to the user:
+
and how the INPUT statement that goes with it would appear to the operator:

Current revision

You can create a "Pseudo-menu" using the PRINT command to create a table of options in the message window so that the operator can read them, and then get their selection using the INPUT command.

PRINT "Cutting options"
PRINT
PRINT "1) LEFT SIDE"
PRINT "2) RIGHT SIDE"
PRINT "3) TOP"
PRINT "4) BOTTOM"
PRINT "5) SHELF"
PRINT "6) DIVIDER"
PRINT "7) Quit"
INPUT "Look at the list in the message box and type your choice...1-7" &mychoice


Here's what the menu will look like:


Image:Billyoung_MessageMenu.jpg


and how the INPUT statement that goes with it would appear to the operator:


Image:Billyoung_InputMenu.jpg



NOTE: The message window can be moved around and resized the way you want it and it's new location and size will be remembered.
Personal tools