Dragging Objects from the Toolbox

To drag an object from the Toolbox and drop it onto a form, perform the following:

  1. Open the Class View window from the View menu.

  2. 2.  Select the element that you want to open in the Painter.

    Note: Sort the hierarchical list into the most appropriate form to locate the attribute you want to use. If necessary, expand a node to list all the items within the node.

  3. Open the form by clicking the Painter tab available at the bottom of the document window.

    Note: Ensure that the PresentationType property is set to a value other than None.

  4. In the Toolbox, click the desired object and drag it to your form.

  5. Drop the object onto the form by releasing the mouse button.

The object is added to the form at the specified location in its default size. You can then modify the properties of the object.

If the object is added to the form by dragging from the Toolbox, and is required to be bound to an attribute (a dynamic object) to be functional, an attribute is created for the object when the object is dropped onto the form. The Attribute property appears in the object's Properties window. Objects for which an attribute is optional and have been added to the form by dragging from the Toolbox are treated as static objects and cannot have an attribute bound to them.