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
TRichMemo EM_FORMATRANGE ...
by
AgriMensor
[
Today
at 08:50:07 pm]
fpGUI Toolkit v2.0.1 has ...
by
Roland57
[
Today
at 08:22:06 pm]
How to determine the unkn...
by
Roland57
[
Today
at 08:12:08 pm]
[SOLVED] Defining TDBDrop...
by
1HuntnMan
[
Today
at 08:08:22 pm]
Problems in drawing an ar...
by
simsee
[
Today
at 07:52:25 pm]
Help needed compiling
by
cdbc
[
Today
at 07:13:41 pm]
DCPcrypt v2.0.6 — Cryptog...
by
JD
[
Today
at 06:43:51 pm]
Fixing Lazarus 4.4 IDE la...
by
Curt Carpenter
[
Today
at 05:11:03 pm]
Select rectangle of the i...
by
backprop
[
Today
at 05:08:27 pm]
ThorVG - test (lightweigh...
by
ALLIGATOR
[
Today
at 04:58:52 pm]
Status of FPC 3.4.0 or FP...
by
LeP
[
Today
at 04:57:44 pm]
Old problem returns...
by
Curt Carpenter
[
Today
at 04:53:31 pm]
Reverting to Old AnchorDo...
by
Curt Carpenter
[
Today
at 04:45:04 pm]
SoundTracker Player Libra...
by
Gigatron
[
Today
at 04:28:05 pm]
Send form to true left an...
by
user5
[
Today
at 03:34:43 pm]
Form designer on MAC: Des...
by
Hansaplast
[
Today
at 03:15:34 pm]
Debian removes FPC/Lazaru...
by
kupferstecher
[
Today
at 11:46:26 am]
[ANN] fpGUI Toolkit v2.0....
by
Roland57
[
Today
at 11:14:36 am]
The Future of FPC
by
n7800
[
Today
at 11:10:42 am]
makefiles
by
Key-Real
[
Today
at 10:04:55 am]
[SOLVED] Sort DBGrid
by
Zvoni
[
Today
at 08:28:39 am]
Strange Error in My Code ...
by
TYDQ
[
Today
at 01:17:35 am]
Fpcupdeluxe
by
creaothceann
[
Today
at 12:09:07 am]
; after then
by
440bx
[February 11, 2026, 10:29:20 pm]
Lazarus for Windows on aa...
by
Wallaby
[February 11, 2026, 10:21:41 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: change application icon (Read 1037 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: 135
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: 263
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: 49
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