Open an object

Note

Now you open an object created by the Template Application wizard.

  1. Select File>Recent Workspaces from the menu bar, then basic_tutorial from the cascading menu.

  2. In the System Tree, expand the basic_tutorial workspace, the basic_tutorial target, and the basic_tutorial.pkl library.

  3. In the basic_tutorial.pkl library, double-click the basic_tutorial Application object

    or

    Right-click the basic_tutorial Application object and select Edit from the pop-up menu.

    The Application painter opens. It displays different views of the basic_tutorial Application object. Your view layout scheme might look different. To display the default layout, select View>Layouts>Default.

    Shown is the default Application painter layout, which  displays two stacks of tabbed panes. The left stack contains tabs for a Script view labeled Open tab, which is selected and displays the script for the Open event of the Application object, and then tabs for Event List, Function List, and Declare Instance Variables. On the right is a stack with tabs for the Properties view and a Non Visual Object List view. The General tab of the Properties view is selected. It has text boxes for AppName which is grayed and has the entry basic underscore tutorial. It also has a button labeled Additional Properties.

    The default Application painter layout displays two stacks of tabbed panes. The left stack contains tabs for a Script view (open tab—it is set to the Open event on the Application object), an Event List view, a Function List view, and the Declare Instance Variables view. The right stack contains tabs for the Properties view and a Non-Visual Object List view.

  4. Look at the code in the Open event in the Script view.

    The PowerScript code that was generated by the wizard in the Application Object Open event calls a PowerScript function to open the main window in the application.