Using the inherited information

When you build and save a menu, PowerBuilder treats the menu as a unit that includes:

When you use inheritance to build a menu, everything in the ancestor menu is inherited in all of its descendants.

What you can do

You can do the following in a descendent menu:

What you cannot do

You cannot do the following in a descendent menu:

NoteHiding a menu item If you do not need a menu item in a descendent menu, you can hide it by clearing the visible property in the Properties view or by using the Hide function.

About menu item names in a descendant

PowerBuilder uses the following syntax to show names of inherited menu items:

AncestorMenuName::MenuItemName

For example, in a menu inherited from m_update_file, you see m_update_file::m_file for the m_file menu item, which is defined in m_update_file.

The inherited menu item name is also locked, so you cannot change it.

Understanding inheritance

The issues concerning inheritance with menus are similar to the issues concerning inheritance with windows and user objects. For information, see Chapter 13, “Understanding Inheritance.”