[fpc-devel] Creating new classes at runtime

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Nov 17 23:54:43 CET 2004


Thanks to Florian I can now create any classes at runtime. ;)

The only missing piece is now renaming of a TComponent. Normally, when a TComponent is renamed TComponent.ValidateRename is called, which calls on a TCustomForm the designer. For TDataModule lazarus was using a workaround, which should not be used any longer.

How can the IDE be notified on rename and how can it stop the rename?

a) add a hook to TComponent in classes.pp
b) add a virtual method to the run time class to override ValidateRename. Sounds a little bit complicated.
c) ?


Mattias




More information about the fpc-devel mailing list