Hi,
I'm using:
Windows 8
Lazarus 1.0.2
FPC 2.6.0
TTrayIcon
TPopupMenu
When I'm Right clicking on my Icon in the systray, the TPopupMenu show. If I'm not selecting anything and I'm clicking on another application, the popup menu disappear. I'm searching a way to do same thing with a Left Click. I mean showing the menu and If I don't select anything, the menu will hide.Up to now I tried on TTrayIcon OnClick:
1) TPopupMenu.PopUp. but my Popup menu don't hide if I click on something else.
2) MouseInput.Click(mbRight, [], TempPos.X,TempPos.Y); but nothing happen.
Any one have a suggestion?
Thank you.