RAD Studio
ContentsIndex
PreviousUpNext
Creating a New Component

This topic describes how to create and setup a component.

To create a component, follow these steps:

  1. Creating a unit file
  2. Deriving the component
  3. Registering the component
Now you will have a minimally functional component ready to install on the Tool palette. After installing, you can add your new component to a form and test it at both design time and runtime. You can then add more features to the component, update the Tool palette, and continue testing.

There are several basic steps that you perform whenever you create a new component. These steps are described below; other examples in this document assume that you know how to perform them.

  1. Create a unit for the new component.
  2. Derive your component from an existing component type.
  3. Add properties, methods, and events.
  4. Register your component with the IDE.
  5. Create a bitmap for the component.
  6. Create a package (a special dynamic-link library) so that you can install your component in the IDE.
  7. Create a Help file for your component and its properties, methods, and events.
Note: Creating a Help file to instruct component users on how to use the component is optional.
When you finish, the complete component includes the following files:
  • A package (.BPL) or package collection (.DPC) file
  • A compiled package (.DCP) file
  • A compiled unit (.DCU) file
  • A palette bitmap (.DCR) file
  • A Help (.HLP) file
You can also create a bitmap to represent your new component. .

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!