Forum > Editor

Application Icon shortcut

(1/3) > >>

I using Lazarus 2.2.2 (rev lazarus_2_2_2) FPC 3.2.2 x86_64-win64-win32/win64.
I have created an Icon for my application using Inkscape and exported the file to 128x128 pixel png file.
I can get the icon applied to the exe file, using the project options, but when I create a shortcut to the application and place it on the desktop the icon reverts to the paw. If I create the shortcut by right mouse on the exe file and create shortcut that file has the new icon but move that file to the desktop or use send to desktop and the icon reverts to the paw.
Selecting the shortcut and display the properties show the asocsiated icon to be the new one and selecting change icon also shows the new icon.

Any pointers would be a help.


Have you looked in correct folder?
I do have sometime the problem that Lazarus compile into \lib\ folder and sometime in root folder of project.
Maybe in your root is a old compiled .exe ?

Create 256x256, 48x48, 32x32, 16x16 icon sizes. You can use Greenfish Icon Editor that's made with Lazarus to create the .ico file.

Also Windows has the cached icopn of the exe applications, so maybe is loading the paw icon from the cache.


Assign the Icon also to the property Icon of the main form.



--- Quote from: winni on September 15, 2022, 05:14:02 pm ---Assign the Icon also to the property Icon of the main form.
--- End quote ---
Hello Winni, can you explain a little what a forms icon has to do with the Shell Icon that the OS display?


[0] Message Index

[#] Next page

Go to full version