Difference between revisions of "Options Menu"

106 bytes removed ,  23:24, 3 July 2012
imported>Threedee
imported>Threedee
Line 111: Line 111:




*To make a multilevel, looping menu with thirty buttons that will not close until a "Done" button is pressed, use the above method but with an altered Menu() function. Note that you can jump to a given message by specifying the aiMessage argument when calling the function. Sub-options as described in the previous example can be added to the below in the same manner. Theoretically, any number of options can be added with the below structure.
*To make a multilevel, looping menu with thirty buttons that will not close until a "Done" button is pressed, use the above method but with an altered Menu() function. Sub-options as described in the previous example can be added to the below in the same manner. Theoretically, any number of options can be added with the below structure.




Line 184: Line 184:
Submenu01() ; More - goto submenu01
Submenu01() ; More - goto submenu01
ElseIf aiButton == 8 ; Return to main menu
ElseIf aiButton == 8 ; Return to main menu
Return
Menu()
ElseIf aiButton == 9 ; Done - exit from all menus
ElseIf aiButton == 9 ; Done - exit from all menus
abMenu = FALSE ; stop the while loop
abMenu = FALSE ; stop the while loop
Line 217: Line 217:
Submenu02() ; More - goto submenu02
Submenu02() ; More - goto submenu02
ElseIf aiButton == 8 ; Return to main menu
ElseIf aiButton == 8 ; Return to main menu
Return
Menu()
ElseIf aiButton == 9 ; Done - exit from all menus
ElseIf aiButton == 9 ; Done - exit from all menus
abMenu = FALSE ; stop the while loop
abMenu = FALSE ; stop the while loop
Line 250: Line 250:
; do stuff here
; do stuff here
ElseIf aiButton == 8 ; Return to main menu
ElseIf aiButton == 8 ; Return to main menu
Return
Menu()
ElseIf aiButton == 9 ; Done - exit from all menus
ElseIf aiButton == 9 ; Done - exit from all menus
abMenu = FALSE ; stop the while loop
abMenu = FALSE ; stop the while loop
Anonymous user