Forum > LCL

Icons for all forms

(1/2) > >>

domasz:
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.

Thaddy:
What does not work? If I do it here and refer to the proper ico resource it works.
Small example?

domasz:
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.

Fred vS:
Hello.

What graphic server do you use?
Wayland does not allow icons in title bar (nor position of forms on the screen).

domasz:
Windows 10

Navigation

[0] Message Index

[#] Next page

Go to full version