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 _______________________________________________ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-devel
