How do you create a Tray icon with FireMonkey?

4.6k Views Asked by At

With the new FireMonkey cross-platform tool, how does one create a tray icon? With Delphi it used to be TTrayIcon.

The documentation has nothing, and no other questions seem to answer this. Would appreciate any idea (I can always resort to system programming per platform, but that's just if there really is no such a thing).

2

There are 2 best solutions below

3
On

The Apesuite component package for Firemonkey has a TTrayIcon component that works in both Windows and OS X. It's not free but it would solve your problem.

http://arcana.sivv.com/apesuite

0
On

As @RRUZ mentioned you'll have to roll two different versions for Windows and OSX.

As far as the Windows version is concerned I stumbled upon an implementation (including balloon hints) at this Chinese blog post, which (except for the missing include which defines DELPHIXE3UP) works perfectly fine for me with XE5/Win8.

I'm aware this is an old question and I didn't have a look at the OSX version yet either, but the Windows version seems like a decent start.