Registration is a simple process that tells the IDE which components to add to its component library, and on which pages of the Tool palette they should appear. For a more detailed discussion of the registration process, see Making components available at design time
procedure Register;
namespace Newcomp { void __fastcall PACKAGE Register() { } }
TComponentClass classes[1] = {__classid(TNewComponent)};
If you are adding a component to a unit that already contains components, it should already have a Register procedure declared, so you do not need to change the declaration.
Registering the Component Example
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|