In the VisualAge Organizer, create a new visual part named ReusableRoadRaceView. In the Composition Editor, delete the Window part, and add a Form part to the free-form surface.
Select the VisualAge Organizer window and open the Composition Editor for RoadRaceView. If they aren't set already, specify the settings for the Runner number and Finish Time Text parts as follows:
Next, copy parts from this visual part to your new ReusableRoadRaceView part. Select the parts as follows:
All the selected parts and their attributes have now been copied to the clipboard. Close the Composition Editor for RoadRaceView.
In the Composition Editor for ReusableRoadRaceView:
All the fields that were selected in RoadRaceView will now appear on the form in ReusableRoadRaceView. All the attributes of each part were also copied. You can confirm this by checking the settings for one or more of the Text parts. This method is a convenient way to copy portions of existing window parts into reusable forms.
Resize the form so all the subparts are visible. Your form should
now look like the following:
You now have a form that can be reused in other visual parts. Now, you will want to make the content of the Text parts available in the form's public interface. To make it easier to deal with the Text parts in the Public Interface Editor, let's rename them first.
Select Change Name from the Runner number Text part's pop-up menu and change its name to runnerNumberText.
Select Change Name from the Finish time Text part's pop-up menu and change its name to finishTimeText.
Select Save Part from the File menu.