Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Inserting menu items – PB Docs 126 – PowerBuilder Library

Inserting menu items – PB Docs 126

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 End

    A new item is added to the menu bar after the File menu.

  • Select Open and select Insert>Menu
    Item

    A new item is added to the File menu
    above Open.

  • Select Open and select Insert>Menu
    Item At End

    A new item is added to the File menu
    after Exit.

  • Select Open and select Insert>Submenu
    Item

    A 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.

proc.png To
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.

proc.png To
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.

proc.png To 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.

proc.png To 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.

proc.png To 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.

proc.png To 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.

proc.png To 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.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x