HTBasic Help
×
Menu
Index

Creating Pulldown Menus (continued)

 
Step 1: Describe System Layout
 
We will begin the design by outlining the desired menu system and the functions to be performed by each of the menu elements. The menu system resides in a PANEL that contains a PRINTER output widget.
 
When you select an element of a menu a string indicating the menu selection is dumped to the PRINTER widget. This feedback mechanism allows you to verify if the menus are working as expected. The following figure shows the desired main panel with menus and elements of each pulldown menu.
 
Main Panel Display
 
     
 
The menu widget PullDown_1 expands as follows:
 
 Button_1
 Separator
 Cascade_1
         Item_1
         Item_2
         Item_3
 Cascade_2
         Toggle_1
         Toggle_2 Toggle_3
         Cascade_3
                         Toggle_1
                         Button_1
 
Cascade_1 and Cascade_2 are "attachment points" for other menus. The elements labeled Toggle_1, Toggle_2, etc. should toggle when selected, which is indicated bythe presence or absence of a "checkmark" in front of the button label.
 
The second top-level menu PullDown_2 expands into:
 
·
Button_1
·
Button_2
 
The third top-level menu PullDown_3 contains:
 
·
Button_1
·
Button_2
·
Button_3
·
Separator
·
Quit
 
The Separator in the first and third pulldown menus performs no other function than
visually separating the entries of those menus.