Registering Components

From RAD Studio
Jump to: navigation, search

Go Up to Making Components Available at Design Time

Registration works on a compilation unit basis, so if you create several components in a single compilation unit, you can register them all at once.

To register a component, add a Register procedure to the unit. Within the Register procedure, you register the components and determine where to install them on the Tool palette.

Note: If you create your component by choosing Component > New Component in the IDE, the code required to register your component is added automatically.

The steps for manually registering a component are:

  1. Declaring the Register Procedure
  2. Writing the Register Procedure
    1. Specifying the Components to be Registered
    2. Specifying the Page in the Tool Palette
    3. Using the RegisterComponents Method
    4. Defining the Loading State for Components Registered in a Package

See Also