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:
-
Select File and
select Insert>Menu Item At EndA new item is added to the menu bar after the File menu.
-
Select Open and select Insert>Menu
ItemA new item is added to the File menu
above Open. -
Select Open and select Insert>Menu
Item At EndA new item is added to the File menu
after Exit. -
Select Open and select Insert>Submenu
ItemA new cascading menu is added to the Open menu
item.
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.
To
insert the first menu bar item in a new menu:
-
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. -
Type the text you want for the menu item and press
Enter.
To
insert multiple menu bar items in a new menu:
-
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. -
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. -
Repeat step 2 until you have added all the menu
bar items you need. -
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.
To insert additional menu items on the menu bar:
-
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.
-
-
Type the text you want for the menu bar item,
and then press Enter.
To add a drop-down menu to an item on the menu
bar:
-
Select the item in the menu bar for which
you want to create a drop-down menu. -
Select Insert>Submenu Item.
PowerBuilder displays an empty box.
-
Type the text you want for the menu item, and
then press Tab. -
Repeat Step 3 until you have added all the items
you want on the drop–down menu. -
Press Enter to save the last drop-down menu item.
To add a cascading menu to an item in a drop-down
menu:
-
Select the item in a drop-down menu for
which you want to create a cascading menu. -
Select Insert>Submenu Item.
PowerBuilder displays an empty box.
-
Type the text you want for the menu item, and
then press Tab. -
Repeat step 3 until you have added all the items
you want on the cascading menu. -
Press Enter to save the last cascading menu item.
To add an item to the end of any menu:
-
Select any item on the menu.
-
Select Insert>Menu Item At End.
PowerBuilder displays an empty box.
-
Type the text you want for the second menu item
in the box and press Enter.
To insert an item in any existing menu:
-
Select the item that should follow the
new menu item. -
Select Insert>Menu Item.
An empty box displays above the item you selected.
-
Type the text you want for the menu item and press
Enter.