How Do I...
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:
- Open a Composition Editor on the visual part from which you want to start
the editor.
- Select
(External Functions category) and then
(Program Starter part).
- Click on the free-form surface.
Specifying the program
Next, define the settings for the part:
- Open the Program Starter part's settings.
- Change the settings as follows:
- Select Find and, in the dialog that opens, find the path name
for ICONEDIT.EXE. The full path name might be
C:\OS2\ICONEDIT.EXE. Once you find and select
ICONEDIT.EXE, select OK.
- In the Parameter string field, specify any parameter you want
passed to the editor when it starts. For example, specifying a bitmap
and its path, such as C:\OS2\BITMAP\WAVE, opens the editor on the
bitmap.
- On OS/2, go to page 2 of the General tab, select the type of
window in which to open the program. For this example, you might keep
the default of OS/2 window.
- 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:

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 ]