Modifying the default behaviour of TrayItem [message #445691] |
Tue, 09 November 2004 10:50  |
Eclipse User |
|
|
|
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 09:40  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.24800 seconds