How to get the coords of a SystemTrayIcon?


#1

Hello,

Invoking the getScreenX (resp Y) or getX (resp Y) methods of a SystemTrayIconComponent always returns 0.
I tried to make a bubbleMessage appear next to a SysTrayIcon but temporary gave up and used instead the right/bottom coords of the desktop.

Anyway, does somebody knows a way to get the coordinate of a SysTrayIcon ?


#2

After some investigations, it seems that getting the screen coordinates of a SystemTrayIcon through Juce doesn’t work on Windows (W7 and XP).
It’s OK on Linux and doesn’t apply to OSX (with Juce).

Rather than writing some specific code, I lazily chose to make the bubble messages appear in the middle of the screen. Unforgettable!