![]() |
Re: TImage als Parent
Zitat:
Also Aggregation, etwa so:
Delphi-Quellcode:
Das funktioniert mit Erzeugen zur Laufzeit. Für Designzeit-Unterstützung braucht's wohl noch etwas Feinschliff. :mrgreen:
TImagePanel = class(TCustomPanel)
private FImage: TImage; public constructor Create(AOwner: TComponent); override; property Image: TImage read FImage; end; constructor TImagePanel.Create(AOwner: TComponent); begin inherited Create(AOwner); AutoSize := True; FImage := TImage.Create(Self); FImage.Parent := Self; end; |
Re: TImage als Parent
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:51 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