![]() |
TPicture inkompatibel mit Typ String
Problem:
Ich möchte eine Bedingung formulieren: Wenn eine TImage-Komponente ein bestimmtes Bild geladen hat, soll ein anderes nicht geladen werden. Dazu muss ich aber das geladene Bild irgendwie herausbekommen. Wenn ich schreibe:
Delphi-Quellcode:
kommt als Fehlermeldung TPicture ist nicht mit TString kompatibel.
if (B_SucheStarten.Picture = './Data/buttons/Suche-starten2.jpg') ...
Mit
Delphi-Quellcode:
if (B_SucheStarten.Picture.Graphic.GetNamePath = './Data/buttons/Suche-starten2.jpg') ...
funtkioniert's auch nicht. Weiß jemand, wie man TPicture in TString umwandelt? vg ts-d |
Re: TPicture inkompatibel mit Typ String
Gar nicht. Im TPicture wird nur ein Bild gespeichert, keine Kontextdaten. Diese musst du selbst speichern.
|
Re: TPicture inkompatibel mit Typ String
danke - das geht einfach. vg
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:46 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