![]() |
Picture-Property von TImage ausblenden
HiHo
Ich möchte die Picture-Property vom Vorfahrentyp TImage ausblenden. Ich hab dazu den Thread ![]() Ich hab jetzt einfach
Delphi-Quellcode:
gemacht, wodruch ich folgenden Error kriege:
type
TVerHorLabel = class(TImage) private property Picture: TPicture; override; { Private-Deklarationen } protected { Protected-Deklarationen } public { Public-Deklarationen } published { Published-Deklarationen } end; Zitat:
Delphi-Quellcode:
Was natürlich nicht geht also hab ichs so geordnet:
type
TVerHorLabel = class(TImage) published private property Picture: TPicture read FPicture write SetPicture; override; private FPicture: TPicture; procedure SetPicture(const Value: TPicture); { Private-Deklarationen } protected { Protected-Deklarationen } public { Public-Deklarationen } published { Published-Deklarationen } end;
Delphi-Quellcode:
Aber dann krieg ich wieder einen Error:
type
TVerHorLabel = class(TImage) private property Picture: TPicture read FPicture write SetPicture; override; FPicture: TPicture; procedure SetPicture(const Value: TPicture); { Private-Deklarationen } protected { Protected-Deklarationen } public { Public-Deklarationen } published { Published-Deklarationen } end; Zitat:
|
Re: Picture-Property von TImage ausblenden
Zitat:
das override ist überflüssig. mfG mirage228 |
Re: Picture-Property von TImage ausblenden
dann kommt aber
Zitat:
|
Re: Picture-Property von TImage ausblenden
Zitat:
Es muss lediglich heissen:
Delphi-Quellcode:
mfG
property Picture;
mirage228 |
Re: Picture-Property von TImage ausblenden
Wird ohne Error compiliert, aber Picture ist immernoch im OI zu sehen
|
Re: Picture-Property von TImage ausblenden
Zitat:
Delphi-Quellcode:
mfG
property Picture stored False;
mirage228 |
Re: Picture-Property von TImage ausblenden
funktioniert auch nicht :(
|
Re: Picture-Property von TImage ausblenden
Hi,
dann trifft glaube ich das zu, was choose im anderen Thread gesagt hat -> es geht nicht. Zitat:
mfG mirage228 |
Re: Picture-Property von TImage ausblenden
Sorry, Doppelpost: Bitte löschen...
|
Re: Picture-Property von TImage ausblenden
Dann werde ich meine Komponente einfach von TGraphicControl ableiten und erweitern. Danke für deine Mühe mirage
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:25 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