Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you create a Tray icon with FireMonkey?

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).

like image 913
Etamar Laron Avatar asked Nov 17 '11 17:11

Etamar Laron


2 Answers

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

like image 63
Jason Southwell Avatar answered Nov 07 '22 21:11

Jason Southwell


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.

like image 43
DNR Avatar answered Nov 07 '22 19:11

DNR