Registriert seit: 12. Aug 2003
Ort: Soest
4.016 Beiträge
Delphi 10.1 Berlin Enterprise
|
Re: Komponente klonen
19. Nov 2004, 09:42
Delphi-Quellcode:
initialization
RegisterClasses([TMyClass, TEdit]);
finalization
UnRegisterClasses([TMyClass, TEdit]);
Edit: besser:
Delphi-Quellcode:
{...}
RegisterClass(TComponentClass(Component.ClassType));
Result := TComponentClass(FindClass(Component.ClassName)).Create(Component.Owner);
UnRegisterClass(TComponentClass(Component.ClassType));
{...}
|