![]() |
Eigene nonvisual Component mit Collection nicht in OI...
...(ObjectInspector) editierbar.
Hallo, ich habe eine NonVisualComponent erstellt mit einer TOwnedCollection als published property. Die Colletion wird zwar im OI angezeigt, wenn ich jedoch Einträge hinzufügen will, kommt die Meldung "Collection=nil". Die Collection wird im Constructor meiner Komponente erzeugt.
Delphi-Quellcode:
Was mache ich verkehrt?
constructor TMyComponent.Create(AOwner: TComponent);
begin inherited Create(AOwner); FMyCollection:= TMyCollection.Create(self); end; |
AW: Eigene nonvisual Component mit Collection nicht in OI...
hat du das Override vergessen?
(der Constructor bei TComponent ist absichtlich Virtual) |
AW: Eigene nonvisual Component ...[SOLVED]
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz