Using inheritance to build a menu

When you build a menu that inherits its style, events, functions, structures, variables, and scripts from an existing menu, you save coding time. All you have to do is modify the descendent object to meet the requirements of the current situation.

StepsTo use inheritance to build a descendent menu:

  1. Click the Inherit button on the PowerBar.

  2. In the Inherit From Object dialog box, select Menus from the Object Type drop-down list, the library or libraries you want to look in, and the menu you want to use to create the descendant, and click OK.

    The selected menu displays in the WYSIWYG Menu view and the Tree Menu view in the Menu painter. The title in the painter’s title bar indicates that the menu is a descendant.

  3. Make the changes you want to the descendent menu as described in the next section.

  4. Save the menu under a new name.