elcharlie
elcharlie

Reputation: 529

TrayIcon right click event

I'm using a TTrayicon in Delphi XE2, and I was wondering if there is any way to control a right click event. I've tried with the click event, but I couldn't

Upvotes: 3

Views: 1865

Answers (2)

Srđan Tot
Srđan Tot

Reputation: 235

You can assign event handler to OnMouseUp. Use Button parameter to find out which button was pressed.

Upvotes: 4

Hidden
Hidden

Reputation: 3628

Associate a TPopupMenu to the TrayIcon.

https://i.sstatic.net/nkEvb.png

Upvotes: 1

Related Questions