Recent

Author Topic: Application Icon  (Read 3685 times)

nelson777

  • Jr. Member
  • **
  • Posts: 68
    • http://www.aocontrario.com
Application Icon
« on: June 16, 2007, 12:29:22 am »
Anyone know why my windres (fpc 2.1.5) responds with the following:

Code: [Select]
cpp: Invalid option `-remap'
C:\lazarus\fpc\2.1.5\bin\i386-win32\windres.exe: no resources


my resource file is:
Code: [Select]
MAINICON ICON "C:/Nelson/Dev/Lazarus/Plantio/shovel.ico"


The file do exists, and I have tried inverting the slashes to '\'.

Also, there is already any means of changing the Application icon which is compatible with all platforms ? (I already read about the window´s {$r *.res} thing).

Nelson

antonio

  • Hero Member
  • *****
  • Posts: 605
RE: Application Icon
« Reply #1 on: June 16, 2007, 07:18:01 am »
Quote from: "nelson777"

there is already any means of changing the Application icon which is compatible with all platforms ?

Is this necessary in Linux?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Application Icon
« Reply #2 on: June 16, 2007, 07:49:05 am »
Quote from: "nelson777"
Anyone know why my windres (fpc 2.1.5) responds with the following:


Which command line are you using to call it?

You need to first use windres to compile the .rc file into a .res file and then add that to your lazarus app. Example here:

http://magnifier.cvs.sourceforge.net/magnifier/magnifierv3/

http://magnifier.cvs.sourceforge.net/magnifier/magnifierv3/magnifier.rc?revision=1.3&view=markup

http://magnifier.cvs.sourceforge.net/magnifier/magnifierv3/compile%20with%20windres.bat?revision=1.4&view=markup

Quote
Also, there is already any means of changing the Application icon which is compatible with all platforms ?


The concept of an Application icon has no meaning on Linux

On Macintosh it is implemented on the app bundle and not inside the executable AFAIK.

 

TinyPortal © 2005-2018