Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
change application icon
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazaris IDE v4.4 - extrem...
by
zeljko
[
Today
at 12:54:12 pm]
How to determine the unkn...
by
LeP
[
Today
at 12:42:16 pm]
Status of FPC 3.4.0 or FP...
by
Martin_fr
[
Today
at 11:44:46 am]
ThorVG - test (lightweigh...
by
ALLIGATOR
[
Today
at 11:35:53 am]
Here's how to show colour...
by
Pallzi
[
Today
at 11:19:27 am]
Can we wallgarden this, p...
by
paweld
[
Today
at 08:58:41 am]
Transparent Form: Done di...
by
LV
[
Today
at 08:38:31 am]
Lazarus for Windows on aa...
by
msintle
[
Today
at 02:29:50 am]
Fast Canvas Library V1.05...
by
Gigatron
[
Today
at 02:25:35 am]
it2play - IT/S3M module r...
by
hukka
[
Today
at 01:02:01 am]
Debian removes FPC/Lazaru...
by
dbannon
[
Today
at 12:57:16 am]
Rolling releases Lazarus[...
by
dbannon
[
Today
at 12:44:27 am]
GridPrinter requirements ...
by
sfeinst
[
Today
at 12:39:07 am]
Lazarus programs look ugl...
by
the_magik_mushroom
[February 07, 2026, 11:54:12 pm]
LCL Web Native with D2Bri...
by
xinyiman
[February 07, 2026, 10:43:41 pm]
Recommendations for wasm3...
by
PascalDragon
[February 07, 2026, 10:38:15 pm]
Migrating SK1 Project to ...
by
jamie
[February 07, 2026, 09:13:45 pm]
[SOLVED] The main screen ...
by
Hansvb
[February 07, 2026, 06:50:52 pm]
[SOLVED] Don't find the U...
by
Hartmut
[February 07, 2026, 05:23:36 pm]
[Closed]FPC error when us...
by
marcov
[February 07, 2026, 04:19:50 pm]
Sidmon Player Library
by
Gigatron
[February 07, 2026, 02:56:58 pm]
Who is absent from year 2...
by
backprop
[February 07, 2026, 01:52:41 pm]
[RESOLVED] Log in to web ...
by
rvk
[February 07, 2026, 01:26:35 pm]
Help with diabetes projec...
by
slicke
[February 07, 2026, 12:13:28 pm]
FPC and Lazarus coding st...
by
Martin_fr
[February 07, 2026, 09:21:46 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: change application icon (Read 1026 times)
Paolo
Hero Member
Posts: 675
change application icon
«
on:
December 21, 2025, 07:11:53 pm »
Hello,
I have successfully converted from Deplhi some app of mine, however the icon is still the delphi one, whatever I try in project option.
any suggestion ?
win-10/laz 4.2.
Thanks
Logged
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #1 on:
December 21, 2025, 07:17:36 pm »
to be more precise : on windows view with small icon i see picture 1 with greater icon greater I see picture 2
Logged
Thaddy
Hero Member
Posts: 18729
To Europe: simply sell USA bonds: dollar collapses
Re: change application icon
«
Reply #2 on:
December 21, 2025, 07:40:36 pm »
delete the res and do a build.
Logged
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #3 on:
December 21, 2025, 07:43:37 pm »
already tried.. nothing.
Logged
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #4 on:
December 21, 2025, 07:47:56 pm »
now the problem is disappeared, maybe a refresh problem of windows ???? (even if for sure I deleted the folder and pressed F5 several times).
Logged
LeP
Full Member
Posts: 118
Re: change application icon
«
Reply #5 on:
December 21, 2025, 09:10:29 pm »
The problem is Windows, which caches the icon. For me (and not only in Delphi) the icon sometimes stays the same for hours (and if I move the .exe to a virtual machine, the icon is correct).
Now it doesn't bother me anymore; I know the icon is correct.
Logged
Paolo
Hero Member
Posts: 675
Re: change application icon
«
Reply #6 on:
December 21, 2025, 09:22:34 pm »
Ok, it seems the case.
Logged
creaothceann
Sr. Member
Posts: 257
Re: change application icon
«
Reply #7 on:
December 21, 2025, 09:52:35 pm »
Other file managers may also do their own icon caching, for example Total Commander.
Logged
anse
New Member
Posts: 47
Bugmonkey
Re: change application icon
«
Reply #8 on:
December 22, 2025, 12:35:20 pm »
Windows caches icons in your user profile. You can delete these
%userprofile%\AppData\Local\Microsoft\Windows\Explorer\iconcache_*.db
You will need to reboot afterwards. Even then this is not a 100% solution, there may be file type associations or your theme/icon pack which override the icons.
What a mess.
Logged
Thaddy
Hero Member
Posts: 18729
To Europe: simply sell USA bonds: dollar collapses
Re: change application icon
«
Reply #9 on:
December 22, 2025, 02:05:07 pm »
Simpler (Windows only):
Code: Pascal
[Select]
[+]
[-]
program
refreshiconcache
;
uses
windows
,
shellapi
;
procedure
RefreshIcons
;
begin
// Notify shell that file associations have changed
SHChangeNotify
(
SHCNE_ASSOCCHANGED
,
// Event: associations changed
SHCNF_IDLIST
,
// No path needed
nil
,
nil
)
;
end
;
begin
RefreshIcons
;
end
.
Full program
, handy function...
This forces the shell to reload the icons.
Logged
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...
Zoran
Hero Member
Posts: 1980
Re: change application icon
«
Reply #10 on:
December 23, 2025, 01:07:28 am »
Quote from: Thaddy on December 22, 2025, 02:05:07 pm
Full program
, handy function...
This forces the shell to reload the icons.
Nice and useful, thanks!
Logged
Swan, ZX Spectrum emulator
https://github.com/zoran-vucenovic/swan
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
change application icon
TinyPortal
© 2005-2018