Using inheritance to build a menu – PB Docs 2017

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:

  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.

    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.

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

  4. Save the menu under a new name.


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