Delphi - Creating a Component
Creating a Component Source File
A new component is just an *.pas file with a Register procedure.
Create one using either
Component / New Component...
or
File / New... / Component
Installing a Component
Component / Install Component...
requests a package (*.dpk) file to install it to.
The package should be in
Delphi5\Lib
This causes the following to be built
- NewComponent.dcu
- Delphi5\Projects\Bpl\Package.bpl
- Delphi5\Projects\Bpl\Package.dcp
- Delphi5\Lib\Package.dcu
- The component's icon is added to the specified component toolbar
Package.dpk was not updated.
Installing a Package
Packages are installed (and removed) using
Component / Install Packages...
Just Add the *.bpl file.
Editting a Package
*.dpk files can be edited via
File / Open...
Here you can add and remove units (*.pas files).
Using the dialog you can manually re-compile the package.
Author: Robert Clemenzi -
clemenzi@cpcug.org