Jump to content
dormky

How do I register a component into the tool palette ?

Recommended Posts

Assuming that the code for your component is already in a package, right-click on the package in the Projects window and select the Install menu item:

 

image.png.cb479dee47fb7e39c8f8a871f122892f.png

 

The documentation that you referenced is lacking. If your component directly interacts with the Delphi IDE, such as using any of the Design*.pas units in the $(BDS)\Source\ToolsAPI folder, then you need to separate your design-time specific code from your run-time code and have separate design-time and run-time packages.

 

Here are some links that may be helpful. Search engines are your friend:

 

Creating Packages

Runtime/Designtime what? Delphi Packages

Component package - where to divide runtime, designtime, registration

 

 

Share this post


Link to post

I feel like my time and the stability of the application will be much better served if I simply makes a class that takes my base component as a parameter. It's to draw on a bitmap anyway so not much going on at design time.

 

Thanks anyway, at least I know not to refer to the docs on this subject 🙂

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×