Register (package)
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.
Related procedures/functions
unit RegisterMyPackage;
interface
uses
LazarusPackageIntf, MyPackage1, MyPackage2, MyOtherPackage;
implementation
procedure Register;
begin
RegisterUnit( 'MyTab', @MyPackage1.Register );
RegisterUnit( 'MyTab', @MyPackage2.Register );
RegisterComponents( 'OtherTab', [TOtherComponent1,TOtherComponent2] );
end;
initialization
{$I myresourcefile.lrs}
RegisterPackage( 'MyTab', @Register );
end.From the Free Pascal wiki, page "Register (package)", as it stood on 2020-02-25 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
