Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi TPNGObject f. TPicture im OI auswählen - zur Runtime weg (https://www.delphipraxis.net/56029-tpngobject-f-tpicture-im-oi-auswaehlen-zur-runtime-weg.html)

Delphi-Freak 30. Okt 2005 18:51


TPNGObject f. TPicture im OI auswählen - zur Runtime weg
 
Hi!

Entwickle gerade an ein paar Komponenten herum und habe dabei eine property vom Typ TPicture; bei dieser wähle ich im OI ein PNG-Bild aus -> geladen mit einem TPNGObject (ich verwende TPNGImage Version 1.5). Zur Designtime wird das Bild auch gezeichnet, zur Runtime ist TPicture aber mehr oder weniger leer. Wenn ich für das Bild aber eine Bitmap auswähle, dann funktioiert das ganze... Was habe ich da falsch gemacht bzw. muss ich dann ein TImage (bei dem funktioniert es dann nämlich) nehmen?

LG, ich

Delphi-Freak 1. Nov 2005 09:46

Re: TPNGObject f. TPicture im OI auswählen - zur Runtime weg
 
*PUSH* - hat denn keiner eine Ahnung?

Khabarakh 1. Nov 2005 09:58

Re: TPNGObject f. TPicture im OI auswählen - zur Runtime weg
 
Zitat:

Zitat von Delphi-Freak
[...], zur Runtime ist TPicture aber mehr oder weniger leer.

Kannst du das noch etwas genauer definieren :wink: ?

Delphi-Freak 1. Nov 2005 10:06

Re: TPNGObject f. TPicture im OI auswählen - zur Runtime weg
 
width = 0, height = 0 und sobald ich auf property.Graphic zugreifen will, regnets eine AV...

LG, ich

PS: *hoffnungschöpf* :mrgreen:

Flocke 1. Nov 2005 10:58

Re: TPNGObject f. TPicture im OI auswählen - zur Runtime weg
 
Hast du denn die besagte Unit (nehme an: pngimage.pas) irgendwo per uses eingebunden?

Delphi-Freak 1. Nov 2005 11:25

Re: TPNGObject f. TPicture im OI auswählen - zur Runtime weg
 
Super, DANKE, jetzt gehts... Ich Trottel :wall:


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:32 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz