Etamar Laron
Etamar Laron

Reputation: 1162

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

Upvotes: 29

Views: 4759

Answers (2)

DNR
DNR

Reputation: 1659

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.

Upvotes: 1

Jason Southwell
Jason Southwell

Reputation: 361

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

Upvotes: 1

Related Questions