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 installing EyeCandy...
by
madref
[
Today
at 12:46:05 am]
Lazarus undead repository...
by
CM630
[August 11, 2026, 11:40:09 pm]
LRS Explorer
by
CM630
[August 11, 2026, 11:33:24 pm]
Identify network devices
by
Warfley
[August 11, 2026, 10:55:13 pm]
The best name for procedu...
by
J-G
[August 11, 2026, 07:49:19 pm]
var vs out
by
Paolo
[August 11, 2026, 06:37:35 pm]
[UNSOLVED] Splitting an i...
by
madref
[August 11, 2026, 05:40:09 pm]
Lazarus Bugfix Release 4....
by
geraldholdsworth
[August 11, 2026, 04:55:42 pm]
[Solved[ How to define th...
by
Mike.Cornflake
[August 11, 2026, 03:42:11 pm]
Dataset EnableControls/Di...
by
Mike.Cornflake
[August 11, 2026, 03:37:42 pm]
'ReadStr' ?
by
J-G
[August 11, 2026, 03:07:16 pm]
Debugging in a real termi...
by
Martin_fr
[August 11, 2026, 02:59:09 pm]
how to bring in view the ...
by
Aruna
[August 11, 2026, 02:33:55 pm]
Is it possible to communi...
by
dbannon
[August 11, 2026, 02:15:44 pm]
TFPHTTPServer DDoS protec...
by
LemonParty
[August 11, 2026, 12:54:23 pm]
enable easy marker moveme...
by
Paolo
[August 11, 2026, 12:10:00 pm]
Unleashed Pascal (async/a...
by
creaothceann
[August 11, 2026, 12:09:09 pm]
MOVED: soucis scrollbars ...
by
Martin_fr
[August 11, 2026, 11:09:38 am]
soucis scrollbars V4.8 ?
by
Martin_fr
[August 11, 2026, 11:08:13 am]
Star Wars Galaxian
by
PierceNg
[August 11, 2026, 10:37:08 am]
[closed] Is case for stri...
by
egsuh
[August 11, 2026, 10:27:17 am]
Automatic generation of *...
by
dbannon
[August 11, 2026, 09:00:50 am]
Gtk3 becomes default widg...
by
dbannon
[August 11, 2026, 08:44:10 am]
TurboBird for FireBird 5
by
laguna
[August 11, 2026, 07:45:04 am]
Bugs caused by the weathe...
by
dsiders
[August 11, 2026, 04:40:59 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Icons for all forms (Read 1245 times)
domasz
Hero Member
Posts: 630
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: 19606
Glad to be alive.
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
Any "programmer" that knows only one programming language is not a programmer
domasz
Hero Member
Posts: 630
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: 3957
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: 630
Re: Icons for all forms
«
Reply #4 on:
August 30, 2024, 05:11:23 pm »
Windows 10
Logged
Hansvb
Hero Member
Posts: 934
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: 630
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