Inserting menu items

There are three choices on the Insert menu: Menu Item, Menu Item At End, and Submenu Item. Use the first two to insert menu items in the same menu as the selected item, and use Insert>Submenu Item to create a new drop-down or cascading menu for the selected item.

For example, suppose you have created a File menu on the menu bar with two menu items: Open and Exit. Here are the results of some insert operations:

Getting the menu started

The first thing you do with a new menu is add the first item to the menu bar. After doing so, you can continue adding new items to the menu bar or to the menu bar item you just created. As you work, the changes you make display in both the WYSIWYG and Tree Menu views.

The first procedure in this section describes how to add a single first item to the menu bar. Use this procedure if you want to add the menu bar item and then work on its drop-down menu. Use the second procedure to add multiple items to the menu bar quickly.

StepsTo insert the first menu bar item in a new menu:

  1. Select the first menu item, and then select Insert>Submenu Item from the PowerBuilder menu bar.

    PowerBuilder displays an empty box on the menu bar in the WYSIWYG Menu view and as a sub-item in the Tree Menu view.

  2. Type the text you want for the menu item and press Enter.

StepsTo insert multiple menu bar items in a new menu:

  1. Select Insert>Submenu Item.

    PowerBuilder displays an empty box on the menu bar in the WYSIWYG Menu view and as a submenu item in the Tree Menu view.

  2. Type the text you want for the menu item and press Tab.

    PowerBuilder displays a new empty box on the menu bar in the WYSIWYG Menu view and as a submenu item in the Tree Menu view.

  3. Repeat step 2 until you have added all the menu bar items you need.

  4. Press Enter to save the last menu bar item.

Adding additional menu items

After you have created the first menu bar item, you can add more items to the menu bar or start building drop-down and cascading menus.

StepsTo insert additional menu items on the menu bar:

  1. Do one of the following:

    • With any menu bar item selected, select Insert>Menu Item At End to add an item to the end of the menu bar.

    • Select a menu bar item and select Insert>Menu Item to add a menu bar item before the selected menu bar item.

  2. Type the text you want for the menu bar item, and then press Enter.

StepsTo add a drop-down menu to an item on the menu bar:

  1. Select the item in the menu bar for which you want to create a drop-down menu.

  2. Select Insert>Submenu Item.

    PowerBuilder displays an empty box.

  3. Type the text you want for the menu item, and then press Tab.

  4. Repeat Step 3 until you have added all the items you want on the drop-down menu.

  5. Press Enter to save the last drop-down menu item.

StepsTo add a cascading menu to an item in a drop-down menu:

  1. Select the item in a drop-down menu for which you want to create a cascading menu.

  2. Select Insert>Submenu Item.

    PowerBuilder displays an empty box.

  3. Type the text you want for the menu item, and then press Tab.

  4. Repeat step 3 until you have added all the items you want on the cascading menu.

  5. Press Enter to save the last cascading menu item.

StepsTo add an item to the end of any menu:

  1. Select any item on the menu.

  2. Select Insert>Menu Item At End.

    PowerBuilder displays an empty box.

  3. Type the text you want for the second menu item in the box and press Enter.

StepsTo insert an item in any existing menu:

  1. Select the item that should follow the new menu item.

  2. Select Insert>Menu Item.

    An empty box displays above the item you selected.

  3. Type the text you want for the menu item and press Enter.