Autor Beitrag
Matty92
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Sa 29.05.10 21:49 
Hi,
wie kann ich das Icon meines Programmes festlegen, in Delphi 2005PE ist unter Projektoptionen die Möglichkeit ein Icon festzulegen ausgegraut.
Und wie kann ich, wenn ich 8x8, 16x16, 32x32 px große einzelne Icondateien in eine einzige zusammensetzen?

Viele Grüße,
Matty


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am So 30.05.2010 um 18:54
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 29.05.10 21:52 
user profile iconMatty92 hat folgendes geschrieben Zum zitierten Posting springen:

Und wie kann ich, wenn ich 8x8, 16x16, 32x32 px große einzelne Icondateien in eine einzige zusammensetzen?


Das kannst du mit einem Icon-Programm, ich empfehle hierzu IcoFX.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Matty92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Sa 29.05.10 22:40 
Hi Elundril,
cool, danke hat geklappt.

Hm, ich mach das jetzt hier mit diesem Tutorial www.delphipraxis.net/topic92819.html (zweiter Post) aber das erstellen der res will nicht klappen.
In der rc steht nur MAINICON ICON DISCARDABLE "icon.ico", die Icondatei heißt auch icon.ico und liegt im selben Verzeichnis wie die .rc.
Als Fehlermeldung gibt die cmd nur Error icon.ico 1 27: Allocate Fail zurück.
Irgendeine Idee?

Ich hab es immernoch nicht rausgekriegt. Könnte jemand für mich aus der .ico-Datei eine .res Dateie machen?

Viele Grüße,
Matty
Einloggen, um Attachments anzusehen!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 30.05.10 04:06 
Wenn das in den Projektoptionen ausgegraut ist, dann stimmt mit der Ressourcendatei für dein Projekt etwas nicht oder du hast eine Konsolenanwendung. Lösch am besten einmal die .res und öffne das Projekt erneut, Delphi erstellt die dann neu und dann kannst du das Icon auch dort setzen. (Ob Delphi auch die mehreren Icons in einer Datei kennt, weiß ich nicht, zumindest die großen ab 128p funktionieren nicht.)

// EDIT:
Bei mir kommt beim Kompilieren der selbe Fehler. Das liegt vielleicht an der Icondatei, vielleicht weil da mehrere Iconformate drin sind. Nimm am besten direkt einen Ressourceneditor. Anders kannst du die .res des Projektes ja ohnehin nicht bearbeiten und zweimal MAINICON geht nicht...
Matty92 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: So 30.05.10 13:42 
Hi Jaenicke,
ich hatte noch keine .res-Datei erstellt.
Aber ich hab mal nach einem Ressourceneditor gegoogelt, und den hier gefunden: www.angusj.com/resourcehacker/
Damit konnte ich die mehrformatige Icondatei einbinden ohne Probleme, nur das 256x256 will er nicht.

Viele Grüße und Danke,
Matty
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: So 30.05.10 14:56 
user profile iconMatty92 hat folgendes geschrieben Zum zitierten Posting springen:
Hi Jaenicke,
ich hatte noch keine .res-Datei erstellt.

Die legt Delphi eigentlich auch schon von sich aus an.
Ist evtl. das Projektverzeichnis schreibgeschützt, bzw. du hast da keine Rechte?

_________________
PROGRAMMER: A device for converting coffee into software.