How Do I...

Example: Start a graphics editor

Start external programs No tip for this topic No example for this topic Test using the Form Input Checker

Suppose you are using OS/2 and want to start the OS/2 Icon Editor from a VisualAge application. To effect this, do the following:

Adding a Program Starter part

Begin by adding a Program Starter part to your application:

  1. Open a Composition Editor on the visual part from which you want to start the editor.
  2. Select External Functions category icon (External Functions category) and then Program Starter icon (Program Starter part).
  3. Click on the free-form surface.

Specifying the program

Next, define the settings for the part:

  1. Open the Program Starter part's settings.
  2. Change the settings as follows:
  3. Select OK.

Now, add a push button to your application, and connect the clicked event for the push button to the startProgram action of the Program Starter part. The Composition Editor shows the following:
Window with program starter

Run the application and select the push button. The OS/2 Icon Editor opens on the specified graphic.


[ Top of Page | Previous Page | Next Page | Table of Contents ]