Specify an icon for the application

Note

Now you specify an icon for the application. The icon appears in the workspace when you minimize the application during execution. PowerBuilder includes the icon automatically when you create an executable file. You specify an icon from the Properties view in the Application painter.

  1. Double-click the pbtutor Application object in the System Tree

    or

    Right-click the pbtutor Application object in the System Tree and select Edit from the pop-up menu.

    The pbtutor Application object is located under the pbtutor library, which is under the pbtutor target object that you created with the Template Application wizard. Different views of the Application object display in the Application painter.

  2. Make sure the Properties view displays in the Application painter.

    If the Properties view is not open, you can open it by selecting View>Properties from the menu bar. The menu item is grayed out if the Properties view is already open.

    Shown is the General tab of the Properties View. It has a grayed text box for App Name with the entry p b tutor and blank text boxes labeled Display Name, Micro Help Default, and D W Message Title.  Next are a spin control for D D E Timeout set to 0, cleared check boxes for Right To Left and Free D B Libraries, and a button for Addtional Properties.
  3. Click the Additional Properties button in the Properties view.

    A tabbed Application property sheet displays.

  4. Select the Icon tab.

  5. Click Browse.

    Navigate to the Tutorial directory.

  6. Select the tutorial.ico file.

    Click Open.

    NoteIf you do not see the ICO file extension You do not see ICO file extensions if the Hide File Extensions for Known File Types check box is selected in the Options dialog box of your Windows Explorer.

    The tutorial icon displays on the Icon page of the Application property sheet.

    Shown is the Icon page of the Application property sheet. It displays a text box for Icon Name with the entry PowerBuilder 10 dot 0 backslash Tutorial backslash  Tutorial dot i c o and next to it is Browse button. Displayed is an icon of a graduation cap and diploma.
  7. Click OK.

    Click the Save button in PainterBar1 or select File>Save.

    Click the Close button in PainterBar1 or select File>Close.