Jump to content
msd

Using my custom controls in Design Time

Recommended Posts

Hello,

 

I would like to add some extra features to standard Delphi VCL components.

For example, I want to expand the TEdit class with some properties and evets.

When I create class TmyEdit = class(TEdit) in runtime, it works fine. I call the create method and I can use it.

But! I need to have a TmyEdit as a VCL component which can be put in a form at design time and configure some properties and connect some events at design time.

I tried with Initialization RegisterClass(TmyEdit), but the same error is there.

 

The error is: class TMyEdit is not found. Ignoring this error will delete this component...

 

Thanks for any info and advice in advance...

Share this post


Link to post

An option I know of is to create your own component based/derived from e.g. Edit. Then follows the creation and installation of the package.

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

×