Working with Menu Items in PowerBuilder .NET

A menu consists of at least one menu item on the menu bar and one or more items in a drop-down menu.

You can add menu items to:

When you add a menu item, PowerBuilder assigns it a default name, which appears in the Name box in the Properties view. This is the name by which you refer to a menu item in a script.

The default name is m_n , where n is the lowest number that can be combined with the prefix to create a unique name. If you enter text when you create the menu item, the text you enter replaces the number. If the text you enter creates a duplicate name, PowerBuilder changes the name back to the number. Menu items in the Tree Menu view and WYSIWYG Menu view can have the same text, but they cannot have the same name in the Properties view.