Opening and previewing objects

You can open and preview objects in the current workspace.

Opening PowerBuilder objects

PowerBuilder objects, such as windows and menus, are opened only if they are in a PBL in the current workspace.

StepsTo open an object:

  1. In either the Tree view or the List view, double-click the object, or select Edit from the object’s pop-up menu.

    PowerBuilder takes you to the painter for that object and opens the object. You can work on the object and save it as you work. When you close it, you return to the Library painter.

Opening other objects

The Library painter allows you to open most of the different file types it displays. When you double-click on an object, PowerBuilder attempts to open it using the following algorithm:

  1. PowerBuilder determines if the object can be opened in the File editor. For example, files with the extensions .txt, .ini, and .sr* open in the File editor.

  2. PowerBuilder determines if the object can be opened in a painter or HTML editor.

  3. PowerBuilder checks to see if the object is associated with a program in the HKEY_CLASSES_ROOT section of the Windows registry and, if so, launches the application.

Previewing PowerBuilder objects

You can run windows and preview DataWindow objects from the Library painter.

StepsTo preview an object in the Library painter:

  1. Select Run/Preview from the object’s pop-up menu.