Installing Component Packages
All components are installed in the IDE as packages. If you have written your own components, create and compile a package that contains them (see Creating and Editing Packages). Your component source code must follow the model described in Overview of Component Creation.
To install or uninstall your own components, or components from a third-party vendor
- If you are installing a new package, copy or move the package files to a local directory. If the package is shipped with .bpl, .dcp, and .dcu files, be sure to copy all of them (see Packages and Standard DLLs). The directory where you store the .dcp file -- and the .dcu files, if they are included with the distribution -- must be in the Delphi Library Path.
- Choose Component > Install Packages from the IDE menu, or choose Project > Options and click the Packages tab. A list of available packages appears in the Design packages list box.
- To install a package in the IDE, select the check box next to it.
- To uninstall a package, clear its check box.
- To see a list of components included in an installed package, select the package and click Components.
- To remove a package from the list, select the package and click Remove.
- To add a package to the list:
- Click Add and browse in the Add Design Package dialog for the directory where the .bpl file resides (see step 1).
- Select the .bpl file and click Open.
- Click OK.
See Registering Components for the steps that must be performed to install the newly created component.
The components in the package are installed on the Tool palette pages specified in the components' RegisterComponents procedure, with the names they were assigned in the same procedure.
New projects are created with all available packages installed, unless you change the default settings. To make the current installation choices into the automatic default for new projects, check the Default check box at the bottom of the Packages tab of the Project Options dialog box.
To remove components from the Tool palette without uninstalling a package, right-click the component to invoke the context menu and choose Hide "<ComponentName>" Button.