| Online Eiffel Documentation

EiffelStudio

# Component selector

The component selector allows you to build and retrieve user definedcomponents for use in your project.

## Creating a component

To define a newcomponent,pick theobject that you wish to create the component from, and thendrop it anywhere in the component selector. The following dialog will appear:

Modify the suggested name as desired, and then clickOK to create the new component. If you clickCancel, the component will not be created.

The component that has been created will contain enough information to allow a copy to be built of the existing object. This includes all the children of the original object (to any depth) and the properties (width, height, color etc)of all objects within the structure. The only properties of the objects that will not be set inside a component are the user defined names, and any events connected to the objects.

## Using a component

To create a new set ofobjects from acomponent,pick thecomponent, anddrop onto anobject representation. If an object is full, or does not allow other objects of the new type to be contained, then you will not be able todrop on it.

If thepick and drop completed successfully, then you should have a new set of objects matching the structure of thecomponent.

## Deleting a component

To remove acomponent from your EiffelBuild system,pick it, and thendrop it on in the main toolbar.

Note: The deletion of acomponent cannot be undone.

## Viewing a component

To view an existing component, use thecomponent_viewer.

See also
Component_viewer
Builder window
Layout Constructor