RAD Studio (Common)
ContentsIndex
PreviousUpNext
Creating a Component Template

You can save selected, preconfigured components on the current form as a reusable component template accessible from the Tool Palette.

To create a component template

  1. Place and arrange components on a form.
  2. In the Object Inspector, set the component properties and events as desired.
  3. Select the components that you want to save as a component template. To select several components, drag the mouse over them.
    Tip: To select all of the components on the form, choose Edit->Select All
    . Gray handles appear at the corners of each selected component.
  4. Choose ComponentCreate Component Template. The Create Component Template dialog box appears.
  5. Specify a name, a Tool Palette category, and an icon for the template.
  6. Click OK.
Your new template appears immediately on the Tool Palette, in the category that you specified.

To use a component template

  1. Display the form to which you want to add the components from the component template.
  2. On the Tool Palette, double-click the component template icon. The components in the component template are added to the form, along with their preconfigured properties and events. You can reposition the components independently, reset their properties, and create or modify event handlers for them, just as if you had placed each component in a separate operation.

To delete a component template

  1. On the Tool Palette, right-click the component template to display a context menu.
  2. Choose the Delete [template name] Button command. The component template is deleted immediately from the Tool Palette.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!