Autor Beitrag
FatalError
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: Fr 12.11.04 21:11 
Hi!

Ich habe ein .bmp in .ico umbenannt; direkt nach Umbenennung hat die Datei direkt ihren eigenen Inhalt als Icon, so wie es eben sein sollte.

Nun habe ich versucht, über Project-> Options-> Application-> Load Icon direkt dieses Icon in mein Projekt einzufügen, damit die .exe des aktuellen Programms Standardmäßig dieses Icon bekommt. Dabei kam jedoch die Fehlermeldung

ausblenden Quelltext
1:
Icon image is not valid					


Was habe ich hier fasch gemacht?


Grüße
Andy :?:


Moderiert von user profile iconTino: Topic aus VCL (Visual Component Library) verschoben am Mi 17.11.2004 um 10:38
galagher
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2510
Erhaltene Danke: 44

Windows 10 Home
Delphi 10.1 Starter, Lazarus 2.0.6
BeitragVerfasst: Fr 12.11.04 21:37 
Titel: Re: "Icon image is not valid"-> Programm Icon z
FatalError hat folgendes geschrieben:
ausblenden Quelltext
1:
Icon image is not valid					


Du hast einfach nur eine .bmp-Datei in .ico umbenannt, es ist aber immer noch eine Datei im Bitmap-Format. Du könntest sie in .txt umbenennen - sie wäre deshalb noch keine Textdatei. Du musst die Datei (bzw. das Bild) als Icon speichern. Kopiere es, lade es in den Image-Editor von Delphi als Icon und speichere es dann!

_________________
gedunstig war's - und fahle wornen zerschellten karsig im gestrock. oh graus, es gloomt der jabberwock - und die graisligen gulpen nurmen!
FatalError Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: Fr 12.11.04 23:56 
Danke, das hat geklappt :D

Ich frage mich nur: Wenn die Datei direkt nach Umbenennung noch keine "echte" Icon-Datei ist, wieso hat diese Datei dann, statt des .bmp-icons, sich selbst als Icon?

Grüße
Andy :wink:
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: Sa 13.11.04 00:14 
na weil Windows eben nach der Dateiendung denkt, es handle sich um eine *.ico datei, und zeigt deshalb das Bild an.
Wenn du diese als *.txt Datei umwandelst, dann wirst du erkennen, dass dort das Icon einer normalen Text-Datei steht.
Oder eben also *.doc oder so, dann ist dort eben das Word zeichen, weil Windows die Datei nur anhand der Dateiendung meint zu erkennen, um welchen Dateitypen es sich handelt
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 13.11.04 11:26 
nope, ich denke er meint warum er das Bild an sich als Icon anzeigt, nun bmp's habe eine 32x32 Pixel Version von sich selbst als Icon, denn du kannst ja die Miniaturansicht (nicht die von XP!) einstellen und Windows zeigt dann bmp's als Bild an, damit es aber die ThumbNails nicht neu berechnen muss liegt es einfach als Icon im File.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
FatalError Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: So 14.11.04 00:46 
Jepp, Ich meinte das zweite :) Danke euch beiden, wieder etwas dazugelernt, einfach spitze das Forum :wink:

Grüße
Andy :idea: