2 Replies Latest reply on May 13, 2008 2:58 PM by Jeesmon

    Showing System Tray Menu on Left Click

    Level 1
      By default System Tray menu is displayed when right clicks on the tray icon. Is it possible to display the menu on left click by dispatching the right click event? I tried to dispatch MouseEvent.RIGHT_CLICK, RIGHT_MOUSE_DOWN, RIGHT_MOUSE_UP but no luck. I can use display() function to display the menu but I'm not able to get the exact coordinates to display the menu as in right click as I cannot get the width of the menu to substract from ScreenMouseEvent.screenX. Also couldn't find any option to remove the display of the menu when user clicks somewhere else after opening menu without selecting any menu option. Any help is appreciated.

      Thanks a lot.