Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Icons for all forms
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
An Idea for a helpful uti...
by
Thaddy
[
Today
at 08:27:38 am]
Drawing a picture on the ...
by
DMH
[
Today
at 05:01:07 am]
Tips for cross-compiling ...
by
Thausand
[November 09, 2025, 11:58:59 pm]
Heaptrc reports unfreed m...
by
Martin_fr
[November 09, 2025, 09:26:46 pm]
Anyone interested in help...
by
ad1mt
[November 09, 2025, 07:57:13 pm]
How detect a keypress in ...
by
Remy Lebeau
[November 09, 2025, 07:49:50 pm]
Paradox date filter
by
tawfiq-lz
[November 09, 2025, 07:46:20 pm]
Why is there no Chinese s...
by
Ten_Mile_Hike
[November 09, 2025, 06:55:11 pm]
Convert table to JSON arr...
by
paweld
[November 09, 2025, 05:56:56 pm]
Lazarus Blowfish
by
BSaidus
[November 09, 2025, 05:44:42 pm]
Unexpected lack of error ...
by
n7800
[November 09, 2025, 05:39:10 pm]
FPC 3.2.4-rc1 available
by
pleumann
[November 09, 2025, 05:12:32 pm]
application crashes on st...
by
Thaddy
[November 09, 2025, 04:17:28 pm]
Initialize list in functi...
by
jamie
[November 09, 2025, 03:40:16 pm]
Blog area?
by
Martin_fr
[November 09, 2025, 02:00:17 pm]
SimpleXML
by
ednaldomoreira
[November 09, 2025, 01:45:18 pm]
What happens if you use "...
by
Thaddy
[November 09, 2025, 01:39:12 pm]
CustomDraw package compil...
by
lainz
[November 09, 2025, 01:21:58 pm]
Register global hotkey
by
Thaddy
[November 09, 2025, 12:46:46 pm]
How to port TArray.Sort?
by
Thaddy
[November 09, 2025, 12:20:36 pm]
Dynamic libraries in Linu...
by
Fred vS
[November 08, 2025, 10:28:42 pm]
FPC v3.2.2 internal error
by
440bx
[November 08, 2025, 09:15:48 pm]
Distance of gridlines in ...
by
wp
[November 08, 2025, 08:08:14 pm]
Lazarus portable?
by
PascalDragon
[November 08, 2025, 06:29:28 pm]
[SOLVED]FPHTTPServer with...
by
m.abudrais
[November 08, 2025, 06:18:26 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Icons for all forms (Read 944 times)
domasz
Hero Member
Posts: 589
Icons for all forms
«
on:
August 30, 2024, 03:21:26 pm »
How can I show icons on title bars in all forms not just the main form?
I set Icon property but it doesn't work.
Logged
Thaddy
Hero Member
Posts: 18322
Here stood a man who saw the Elbe and jumped it.
Re: Icons for all forms
«
Reply #1 on:
August 30, 2024, 03:24:23 pm »
What does not work? If I do it here and refer to the proper ico resource it works.
Small example?
Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
domasz
Hero Member
Posts: 589
Re: Icons for all forms
«
Reply #2 on:
August 30, 2024, 04:46:53 pm »
I have a Form1 and AboutDlg (TAboutDlg = class(TForm)).
I set an icon in Project -> Project Options.
I also set AboutDlg.ShowInTaskBar := stAlways;
In design time I set an icon for AboutDlg.Icon. When this window shows it doesn't have my icon on the task bar but instead just the default lazarus icon. It also doesn't have any icon in title bar.
Logged
Fred vS
Hero Member
Posts: 3716
Re: Icons for all forms
«
Reply #3 on:
August 30, 2024, 04:54:00 pm »
Hello.
What graphic server do you use?
Wayland does not allow icons in title bar (nor position of forms on the screen).
Logged
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32, FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.
https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs
domasz
Hero Member
Posts: 589
Re: Icons for all forms
«
Reply #4 on:
August 30, 2024, 05:11:23 pm »
Windows 10
Logged
Hansvb
Hero Member
Posts: 860
Re: Icons for all forms
«
Reply #5 on:
August 30, 2024, 05:44:16 pm »
Hi,
Menu, Project Options and then load Icon in the application settings should be enough.
You can override this for each form by loading an icon under Icon in the Object Inspector. Then you can show an icon per form.
Logged
domasz
Hero Member
Posts: 589
Re: Icons for all forms
«
Reply #6 on:
August 30, 2024, 07:26:18 pm »
Thanks. I had to restart explorer but now it does work.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Icons for all forms
TinyPortal
© 2005-2018