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

The sample shows the System tab of the Browser. The left pane is a tree view. The top level node is labeled power object. Directly under the power object, you can see the application and  function _ object items and the graphic object node. The Graphic object node is expanded to show menu, window, and window object. The menu and Window object nodes are shown expanded in turn. The right pane of the browser lists Properties, Events, and Functions for the selected item in the left pane.

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.