Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-09

Mac: High DPI TImage and TTrayIcon

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tobias Giesen

Hello,

I am finally trying to give my app some high DPI icons and graphics.

Many thanks for the High DPI demos, which help a lot!

However I have no idea if it is possible to have a high DPI TImage and TTrayIcon? Is there maybe some runtime code needed to make it possible?

It would be so great if a TImage could get its picture from an image list. Is such a feature available anywhere, maybe in a third party component?

Thanks.
Tobias Giesen

Reply by email

Ondrej Pokorny
to Tobias Giesen
Tobias Giesen wrote 8 lines
Hello, I am finally trying to give my app some high DPI icons and graphics. Many thanks for the High DPI demos, which help a lot! However I have no idea if it is possible to have a high DPI TImage and TTrayIcon? Is there maybe some runtime code needed to make it possible?

TImage: yes - just use an image with a higher resolution.

TTrayIcon: no idea about mac. I haven't worked on this one.

It would be so great if a TImage could get its picture from an image list. Is such a feature available anywhere, maybe in a third party component?

Such a component is pretty easy to write - just a few lines of code. I wrote one myself.

Ondrej

Reply by email