Autor Beitrag
jUli@
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 61



BeitragVerfasst: Mi 05.02.03 10:57 
hallöchen...

wie zeige ich den Bildpfad an??? also ich habe
ausblenden Quelltext
1:
edtBild.Text:= Bild.Picture.GetNamePath;					

aber dann zeigt der nur tPicture an.... was habe ich denn falsch gemacht??


Lg julia
Alfons-G
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 307

Win XP Prof, Linux, Win 7
D5 Prof, D7 Architect, D2005 Architect, D2007 Architect
BeitragVerfasst: Mi 05.02.03 12:46 
GetNamePath zeigt NICHT den Pfad Deines Bildes an, sondern den Namen Deiner Komponente.
Der Pfad eines Bildes, welches Du zur Entwurfszeit geladen hast, wird nicht in Delphi gespeichert und ist deshalb auch nicht zur Laufzeit abrufbar.

Bei Bildern, welche Du zur Laufzeit lädtst, liegt Dir der Pfad ohnehin vor, denn wie solltest Du sonst Picture.LoadFromFile ausführen?

8)

_________________
Alfons Grünewald
jUli@ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 61



BeitragVerfasst: Mi 05.02.03 20:28 
danke ich habe es schon hinbekommen!

:D