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
Error: Enumeration symbol...
by
440bx
[
Today
at 03:41:22 am]
Question re. FCL's ssocke...
by
Curt Carpenter
[
Today
at 12:22:45 am]
SpkToolbar custom update
by
wp
[December 14, 2025, 11:55:55 pm]
TLazSerial : serial port ...
by
tetrastes
[December 14, 2025, 09:57:52 pm]
[hacked for now] Changing...
by
jamie
[December 14, 2025, 09:00:23 pm]
Access Violation - Databa...
by
1HuntnMan
[December 14, 2025, 07:01:25 pm]
MVP made easier.
by
cdbc
[December 14, 2025, 05:14:40 pm]
Lazarus is not working
by
Fred vS
[December 14, 2025, 05:14:20 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 14, 2025, 04:52:18 pm]
Recomendations for conver...
by
BlueIcaro
[December 14, 2025, 04:44:57 pm]
Running External Tools
by
JuhaManninen
[December 14, 2025, 04:08:28 pm]
Why does the call via fun...
by
jamie
[December 14, 2025, 03:19:59 pm]
The start of yet another ...
by
TBMan
[December 14, 2025, 03:16:21 pm]
Need help with Runcommand...
by
marcov
[December 14, 2025, 12:46:25 pm]
Military Grade Directives
by
Thaddy
[December 14, 2025, 11:46:44 am]
Cannot find Online Packag...
by
Thaddy
[December 14, 2025, 11:37:58 am]
Anyone interested in help...
by
ad1mt
[December 14, 2025, 08:56:20 am]
Hashing pointers by using...
by
440bx
[December 14, 2025, 03:16:33 am]
exception external SIGSEG...
by
dseligo
[December 14, 2025, 02:24:28 am]
[SOLVED] Is this a compil...
by
jamie
[December 14, 2025, 01:46:54 am]
Problem installing LazPro...
by
peter.dell
[December 14, 2025, 01:32:53 am]
AI interactions
by
Joanna
[December 13, 2025, 11:47:24 pm]
project - count source li...
by
bobonwhidbey
[December 13, 2025, 10:30:31 pm]
FPC 3.2.4-rc1 available
by
PeterBB
[December 13, 2025, 08:31:32 pm]
fpsockets error: 10047
by
parcel
[December 13, 2025, 04:03:56 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Icons for all forms (Read 1006 times)
domasz
Hero Member
Posts: 601
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: 18528
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: 601
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: 3726
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: 601
Re: Icons for all forms
«
Reply #4 on:
August 30, 2024, 05:11:23 pm »
Windows 10
Logged
Hansvb
Hero Member
Posts: 867
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: 601
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