Difference between revisions of "Register (package)"
From Lazarus wiki
Jump to navigationJump to searchm (layout) |
|||
Line 1: | Line 1: | ||
− | A [[Lazarus Packages|Lazarus package]] that is intended to be installed needs a '''Register''' procedure which declares all the | + | A [[Lazarus Packages|Lazarus package]] that is intended to be installed needs a '''Register''' procedure which declares |
+ | * all the package components and corresponding files | ||
+ | * the tab on which the [[component]]s are to be located. | ||
* [[RegisterUnit]] | * [[RegisterUnit]] |
Revision as of 09:06, 3 October 2014
A Lazarus package that is intended to be installed needs a Register procedure which declares
- all the package components and corresponding files
- the tab on which the components are to be located.
unit RegisterMyPackage;
interface
uses
LazarusPackageIntf, MyPackage1, MyPackage2;
implementation
procedure Register;
begin
RegisterUnit( 'MyTab', @MyPackage1.Register);
RegisterUnit( 'MyTab', @MyPackage2.Register);
end;
initialization
RegisterPackage( 'MyTab', @Register );
end.