Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 15.04.04 20:07 
Hi,
ich habe über die DirectoryListBox ein FTP Verzeichnis angezeigt bekommen.

Da bei dieser anzeige zuviel krimskrams drin ist, extrahiere ich einfach nur den Dateinamen und die Dateiendung und schreibe diese in eine Listview Komponente.

Nun habe ich die Dateiendung .txt,doch woher bekomme ich nun noch das Icon einer .txt datei, damit ich dieses in der Listview anzeigen lassen kann ?

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 15.04.04 20:15 
Eine Lösung heißt Suche in: Delphi-Forum, Delphi-Library SHGETFILEINFO, bzw. (für die DP) Suche in der Delphi-PRAXiS SHGETFILEINFO. Ein praktisches Beispiel findest du bspw. in der nonVCL-Demo zur List-View (Common Controls) in den Win32-API-Tutorials. Ja, es handelt sich um nonVCL, das Prinzip ist aber gleiche und lässt sich auch für VCL-Projekte übernehmen.
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 15.04.04 20:40 
jo danke ich habe gefunden was ich gesucht habe.

// edit aber mir ist noch was eingefallen:

Die Datei befindest sich ja auf einem Webserver. Und ich möchte einfach nur das Bild der endung haben. Ich extrahiere vorher die Datei endung nun bleibt einfach die endung txt übrig.
Nun möchte ich einfach nur das Icon der Endung txt haben. gibt es da nicht was aus der registry oder so ??

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: Do 15.04.04 21:28 
Ich wette, daß es da was in der hiesigen FAQ gibt. Sonst ExtractAssociatedIcon bei MSN msdn.microsoft.com/l...ctassociatedicon.asp

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 15.04.04 22:17 
mhh,
nuja durch dieses beispiel bin ich nicht wirklich schlauer geworden. kannst du mir vielleicht durch ein kleines beispiel auf die sprünge helfen?

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: Do 15.04.04 22:59 
Welches Beispiel?

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Do 15.04.04 23:43 

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: Fr 16.04.04 00:08 
Schon in der FAQ gesucht?

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(