Recent

Author Topic: Icon on exe file  (Read 13502 times)

jpremor

  • New Member
  • *
  • Posts: 11
Icon on exe file
« on: February 11, 2010, 06:37:47 pm »
Hi all,

i tried to attach some icons to my project executable but not successfull.

going on Menu/Project/ProjectOptions/Load Icon, i choose a new icon to the project. The size was the default icon size, 32x32.
After build, the icon shown was the lazarus default tiger foot icon.

If i remove the icon, it removes correctly. The compiled file have no icon.

I tried to edit my project.rc file containing this line
MAINICON ICON "project.ico" 
and add this compilation parameter on projetc.lpr file
{$IFDEF WINDOWS}{$R TesteMob.rc}{$ENDIF}
, with and without ifdef windows, but again the default icon appear.

the icon file have the same name as the project file.

my lazarus version is 0.9.28.2 beta (25/10/2009)
FPC : 2.2.4

there is any problem on lazarus or i'm doing something wrong?

thanks!

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Icon on exe file
« Reply #1 on: February 11, 2010, 07:12:14 pm »
....mmm, strange, no problem here.
Same version, of Lazarus and FPC.
Try another icon, if still not working, create a dumb project and post it somewhere.

jpremor

  • New Member
  • *
  • Posts: 11
Re: Icon on exe file
« Reply #2 on: February 11, 2010, 08:03:40 pm »
Well, starting a new project it worked perfectly.

tnks

owndante

  • New member
  • *
  • Posts: 7
Re: Icon on exe file
« Reply #3 on: August 25, 2010, 12:30:16 pm »
Same problem. 0.9.28.2 beta

fuchaka

  • Newbie
  • Posts: 2
Re: Icon on exe file
« Reply #4 on: January 05, 2019, 01:47:19 pm »
Lazarus#:1.8.4
FPC Version 3.0.4
i386-win32-win32/win64

Go to Projects-Project Options - Application Settings
Clear Icon
Load Icon, select from where the desirable icon is located
Click OK
Ctrl+F9

The Application Executable will get the new Icon that you will have selected.