Registration is a simple process that tells Delphi which components to add to its component library, and on which pages of the Component palette they should appear. For a more detailed discussion of the registration process, see Making components available at design time
To register a component,
1 Add a procedure named Register to the interface part of the component抯 unit. Register takes no parameters, so the declaration is very simple:
procedure Register;
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.
2 Write the Register procedure in the implementation part of the unit, calling RegisterComponents for each component you want to register. RegisterComponents is a procedure that takes two parameters: the name of a Component palette page and a set of component types. If you are adding a component to an existing registration, you can either add the new component to the set in the existing statement, or add a new statement that calls RegisterComponents.
这个是标准的delphi语法,我也讲不清楚,你看看帮助。 |