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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Possible floating point e...
by
ad1mt
[
Today
at 07:38:47 pm]
FPC on Web3
by
Warfley
[
Today
at 07:21:31 pm]
Error printing to zebra p...
by
rvk
[
Today
at 07:18:49 pm]
Integer maths > 16 bits
by
MarkMLl
[
Today
at 07:13:01 pm]
combobox inside a treevie...
by
Paolo
[
Today
at 07:11:26 pm]
memory management
by
Fibonacci
[
Today
at 06:56:17 pm]
Win. dark themes, mysteri...
by
d7_2_laz
[
Today
at 06:30:12 pm]
How to query the outer si...
by
rvk
[
Today
at 06:15:33 pm]
Installation on Sequoia
by
pat03uk
[
Today
at 05:17:31 pm]
how to check type of valu...
by
Thaddy
[
Today
at 05:00:48 pm]
[SOLVED] How do I put tex...
by
Ever
[
Today
at 04:21:57 pm]
Another question about cr...
by
carl_caulkett
[
Today
at 04:20:49 pm]
New Big Integer library i...
by
Bart
[
Today
at 03:50:25 pm]
Launch Starship for the F...
by
Fred vS
[
Today
at 03:45:00 pm]
Are there any plans for L...
by
n7800
[
Today
at 03:42:57 pm]
Another question about cr...
by
Hansvb
[
Today
at 12:28:00 pm]
A four way logic with thr...
by
Thaddy
[
Today
at 11:19:14 am]
Tmemo don't control when ...
by
Joanna
[
Today
at 09:39:51 am]
SQLQuery field not found ...
by
Gebo
[
Today
at 09:08:49 am]
Android 4.2.2 Jellybean w...
by
loaded
[
Today
at 08:38:51 am]
Problem removing Heaptrc ...
by
Thaddy
[
Today
at 07:18:00 am]
Does the IDE have a termi...
by
vfclists
[
Today
at 04:08:39 am]
How to refresh file after...
by
vfclists
[
Today
at 02:38:35 am]
(Newbie) error in compili...
by
dbannon
[
Today
at 01:19:02 am]
Component with horizontal...
by
JuhaManninen
[October 12, 2024, 11:48:54 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Icons for all forms (Read 490 times)
domasz
Hero Member
Posts: 541
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: 15735
Censorship about opinions does not belong here.
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
If I smell bad code it usually is bad code and that includes my own code.
domasz
Hero Member
Posts: 541
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: 3366
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: 541
Re: Icons for all forms
«
Reply #4 on:
August 30, 2024, 05:11:23 pm »
Windows 10
Logged
Hansvb
Hero Member
Posts: 710
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: 541
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