Lazarus

Installation => PDAs and Smartphones => Topic started by: jpremor on February 11, 2010, 06:37:47 pm

Title: Icon on exe file
Post by: jpremor 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!
Title: Re: Icon on exe file
Post by: LazaruX 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.
Title: Re: Icon on exe file
Post by: jpremor on February 11, 2010, 08:03:40 pm
Well, starting a new project it worked perfectly.

tnks
Title: Re: Icon on exe file
Post by: owndante on August 25, 2010, 12:30:16 pm
Same problem. 0.9.28.2 beta
Title: Re: Icon on exe file
Post by: fuchaka 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.
TinyPortal © 2005-2018