Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Modifying the default behaviour of TrayItem
Modifying the default behaviour of TrayItem [message #445691] Tue, 09 November 2004 15:50 Go to next message
Eclipse UserFriend
Originally posted by: bunnahnah.hotmail.com

Hello,

I am attempting to modify the default behaviour of TrayItem when it is
clicked.
Currently, I believe that the TrayItem will only listen to 3 events -
MenuDetect, DefaultSelection, and Selection.
I want the tray item to also listen for keyboard presses - such as a Ctrl
held down whilst the trayItem is being clicked.
Alternatively, can I listen for 4 mouse clicks?

Summarising, I want to change the default events that TrayItem listens
for.
Since I am a nOOb, pseudo-code would be very very helpful! ;)

Thanks.

Chee
Re: Modifying the default behaviour of TrayItem [message #445744 is a reply to message #445691] Wed, 10 November 2004 14:40 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
This is by design. It's not clear that TrayItem is a control in the
operating system and can even take keyboard focus. Therefore, it isn't safe
to offer all the events that a control can get as SWT API.

"Chee Yong" <bunnahnah@hotmail.com> wrote in message
news:cmqovd$u9l$1@eclipse.org...
> Hello,
>
> I am attempting to modify the default behaviour of TrayItem when it is
> clicked.
> Currently, I believe that the TrayItem will only listen to 3 events -
> MenuDetect, DefaultSelection, and Selection.
> I want the tray item to also listen for keyboard presses - such as a Ctrl
> held down whilst the trayItem is being clicked.
> Alternatively, can I listen for 4 mouse clicks?
>
> Summarising, I want to change the default events that TrayItem listens
> for.
> Since I am a nOOb, pseudo-code would be very very helpful! ;)
>
> Thanks.
>
> Chee
>
Previous Topic:[newbie] Setting the size of a Tree
Next Topic:Resetting a canvas
Goto Forum:
  


Current Time: Fri Apr 19 13:33:30 GMT 2024

Powered by FUDForum. Page generated in 0.01774 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top