Author Topic: possible OnClick event of a TTrayIcon BalloonHint  (Read 458 times)


  • Newbie
  • Posts: 1
possible OnClick event of a TTrayIcon BalloonHint
« on: August 18, 2019, 04:03:07 pm »

I have a working application, that shows a up as a TrayIcon in Windows.
Also I can trigger BallonHints with TTrayIcon.ShowBalloonHint.

But I'm not able to to find a solution, to know, when the BallonHint was clicked.
Just the OnClick and OnDoubleClick Events of the TrayIcon itself, but not for the Balloons.

Maybe I'm missing something ovious and have the work search kewqord for this forum and google...

Any "hint"  ;) on this would be highly welcome.


  • Hero Member
  • *****
  • Posts: 3664
Re: possible OnClick event of a TTrayIcon BalloonHint
« Reply #1 on: August 18, 2019, 06:32:44 pm »
I don't think you'll get that, with each update of windows the taskbar changes so the best you can do which I've done before is to hook into the task window and monitor the messages and evaluate the ones around your icon.

 I gave up on this long ago since every time I updated windows that feature would change its working pattern.

 Enumerating the items on the bar will give you locations etc. but like I said for each update of windows the behavior changes. I really don't think MS wants apps doing this, it does introduce a security risk of allowing apps to get full access to the bar.

 The SHAppBarMessage is one API that can be used to query info about it.
The only true wisdom is knowing you know nothing


TinyPortal © 2005-2018