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 descendant object to meet
the requirements of the current situation.
To use inheritance to build a descendant menu:
-
Click the Inherit button on the PowerBar.
-
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.Displaying menus from many libraries
To find a menu more easily, you can select more than one
library in the Application Libraries list. Use Ctrl+click to
toggle selected libraries and Shift+click to select a
range.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. -
Make the changes you want to the descendant menu as described
in the next section. -
Save the menu under a new name.