Dropping a Part that Is Not on the Palette

To place a part on the Composition Editor:

  1. From the Options pull-down menu, select Add part and the Add Part window appears.

  2. Enter the class name in the Part class field. This is the class name that was specified when the part was created. When you begin typing, you replace the highlighted prompt, class_name*, with the name of the part you want to add. You can also select the List... button and select a class from the Add Part -- Select Class window.

    The asterisk at the end of the name is a reminder that you are actually entering a pointer to the part. When you enter a valid class name for the part without deleting the asterisk, the Composition Editor automatically selects the Part radio button. You can place a pointer to a variable by selecting the Variable radio button.

    If you delete the asterisk, the Composition Editor grays out the Part radio button and selects the Variable radio button. You will be adding a variable with the class name type you entered in the Part class field.

    You cannot add abstract parts or template parts using the Add Part window. For example, IButton* is the abstract part that IPushButton* inherits from. You can add IPushButton*, but not IButton*.

    Note: You cannot add an object factory part using the Add Part window because it is a template. You must add it by selecting it on the parts palette.

  3. Type a name for the part in the Name field. This name appears in the information area at the bottom of the Composition Editor when you select the placed part; it represents the part in generated part code.

    The Name field is optional. If you leave it blank, the Composition Editor uses the class name for the part.

  4. Select the Add push button to add the part. TheAdd Part window disappears and the mouse pointer turns into the same crosshairs used for placing a part on the free-form surface.

    To enable the Add push button, you must enter the name of a part that is known to the Composition Editor in the Part class field.

  5. To keep the Add Part window active after loading the mouse pointer with the part, select Apply.

  6. Move the crosshairs to the place where you want to add the part and click mouse button 1.


Related concepts
About Adding Parts in the Composition Editor

Related procedures
Dropping Parts in the Composition Editor
Dropping a Part that Appears on the Palette

Related references
Add Part Window
Placing and Modifying a Variable and IVSequence* Part in the To-Do List Application

Unloading the Mouse Pointer

To unload the mouse pointer at any time, do either of the following: