Autor Beitrag
Kinimod8
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win XP Home
D3 Prof
BeitragVerfasst: Di 06.01.04 21:00 
Hallo,

wie kann ich eine .icl-Datei anzeigen :?: :?: Also die Iconsammlungen?
Stefan-W
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 475

Win 7 SP1
D2005 PE
BeitragVerfasst: Di 06.01.04 22:36 
Abent...

nun ich hatte das Problem mal mit *.exe und *.dll, und habe da auch nen Code gefunden

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
icon:TIcon;
...
icon:=TIcon.Create;

icon.Handle:=ExtractIcon(hinstance,Dateiname,Iconnummer);


na da, noch viel Spaß damit...

Gruß Stefan

hoffe du kanst damit was anfangen...

Ich hab das dann in eine Image reingepackt, etwa so...

ausblenden Delphi-Quelltext
1:
Image1.Picture.Icon:=icon;					
Kinimod8 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win XP Home
D3 Prof
BeitragVerfasst: Mi 07.01.04 16:41 
Bei mir funktioniert das nicht: Delphi sagt nur, dass die Funktion ExtractIcon nicht vorhanden ist. :(
Popov
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1655
Erhaltene Danke: 13

WinXP Prof.
Bei Kleinigkeiten D3Pro, bei größeren Sachen D6Pro oder D7
BeitragVerfasst: Mi 07.01.04 18:34 
Die ExtractIcon Funktion ist eine Api Funktion. Du solltest also

ausblenden Delphi-Quelltext
1:
2:
uses
  ..., ShellApi;


hinzufügen ;)

_________________
Popov
Kinimod8 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win XP Home
D3 Prof
BeitragVerfasst: Do 08.01.04 15:53 
Danke, jetzt klappts. :D