The inheritance hierarchy  Working with inherited objects

Chapter 12: Understanding Inheritance

Browsing the class hierarchy

PocketBuilder provides a Browser that can show the hierarchy of the built-in PocketBuilder system objects and the hierarchy of the ancestor and descendent windows, menus, and user objects you create. In object-oriented terms, these are called class hierarchies: each PocketBuilder object defines a class.

Figure 12-2: Displaying the hierarchy of system classes in the Browser

NoteRegenerating objects The Browser also provides a convenient way to regenerate objects and their descendants. For more information, see “Regenerating library entries”.

StepsTo browse the class hierarchy of PocketBuilder system objects:

  1. Click the Browser button in the PowerBar.

  2. Choose the System tab to show the built-in PocketBuilder objects.

  3. In the left pane, scroll down the object list and select “powerobject”.

  4. Display the pop-up menu for powerobject and choose Show Hierarchy.

  5. Select Expand All from the pop-up menu and scroll to the top.

    The hierarchy for the built-in PocketBuilder objects displays.

    NoteGetting context-sensitive Help in the Browser To get context-sensitive Help for an object, control, or function, select Help from its pop-up menu.

StepsTo display the class hierarchy for other object types:

  1. Choose the Menu, Window, or User Object tab.

    If you choose any other object type, there is no inheritance for the object type, so you cannot display a class hierarchy.

  2. In the left pane, select an object and choose Show Hierarchy from its pop-up menu.

  3. Select an object and choose Expand All from its pop-up menu.

    PocketBuilder shows the selected object in the current application. Descendent objects are shown indented under their ancestors.





Copyright © 2004. Sybase Inc. All rights reserved. Working with inherited objects

View this book as PDF