Recent

Author Topic: Left click with TtrayIcone and TpopupMenu  (Read 2239 times)

TheLastCayen

  • Jr. Member
  • **
  • Posts: 83
Left click with TtrayIcone and TpopupMenu
« on: August 15, 2013, 11:53:22 pm »
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.



 
« Last Edit: August 15, 2013, 11:55:13 pm by TheLastCayen »

 

TinyPortal © 2005-2018