Forum > Editor

Application Icon shortcut

(1/3) > >>

johnmc:
Hi,
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.

John

KodeZwerg:
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 ?

lainz:
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.

winni:
Hi!

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

Winni

KodeZwerg:

--- 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?

Navigation

[0] Message Index

[#] Next page

Go to full version