VisualAge provides a way for you to edit a composite part that
is embedded within another composite part.
The only exception is that the Composition Editor does not
allow you to modify the VisualAge provided base parts. However,
if you place one of these base parts on either a Composers part
or the free-form surface, you can modify the embedded parts by
doing either of the following:
- If you want to add an action to the embedded part,
connect to a member function or custom logic that belongs
to the composite part. Write a member function or provide
custom logic if you need to perform an action of limited
use--that is, one that you do not anticipate using very
often and that you do not want a derived part to inherit.
- If you want to add a new feature that you plan to use
often, create a new part that is derived from the base
part. For example, to add a new feature to an
IEntryField* part, create a new visual part whose base
part is the IEntryField* part and replace the
IEntryField* part that you were using with your new part.
You can then add as many new features to your new part as
you need.
If you want to edit a part that was added to the part you are
editing:
- Move the mouse pointer over the part you want to edit.
- Click mouse button 2. The pop-up menu appears.
- Select Edit part, and VisualAge displays the
appropriate editor for the part:
- For a visual part, the Composition Editor
- For a nonvisual or class interface part, the Part
Interface Editor.
- Edit the part. If you want to promote any of the part
features used to create the composite part you are
editing, do so now to prevent having to edit this part
later. See About Promoting
Part Features for more information.
- Select File and then Save to save the part.
- Close the editor and you are returned to the Composition
Editor.
- To apply your changes, select File and then Save
and save the original part.
- Close the Composition Editor for the original part that
you were editing, as described previously.
- Reopen the original part you were editing to see the
changes you made.
Editing Part Labels Directly
Editing Part Properties
Undoing and Redoing Changes in
the Composition Editor
Renaming Parts in the Composition
Editor
Connecting Features to Member
Functions
Connecting Features to Custom
Logic