|
|
Re: How to capture MouseEvents on a TableColumn [message #437643 is a reply to message #437640] |
Wed, 09 June 2004 06:33 |
Erik Lundström Messages: 22 Registered: July 2009 |
Junior Member |
|
|
Michael,
thanks for your suggestion. I did try your approach as well, however with no
effect. No events reach the handleEvent-method at all, which confuses me.
Enlighten me please, anyone?!?
I think the underlying "problem" (regarding my original ?: how to capture
mouse events on a TC) might be that headers of Table objects are
"unreachable", since Eclipse relies heavily on the OS for this. But then
again, it is possible to add a SelectionListener to a TableColumn, so why
should it be impossible to add a MouseListener?!?
Any help on this topic is very welcome.
Erik
"Michael Xia" <yun@rti.com> skrev i meddelandet
news:ca5ka1$nog$1@eclipse.org...
> I haven't tried it, but try to just use addListener().
>
> TableColumn.addListener(SWT.MouseDown, new Listener() {
> public void handleEvent(Event event) {
> }
> });
>
> Then in handleEvent(), you could check if it's right or left mouse click
> and process it accordingly.
>
> Michael
>
>
|
|
|
|
|
|
Re: How to capture MouseEvents on a TableColumn [message #559659 is a reply to message #437840] |
Fri, 17 September 2010 14:20 |
|
Hi Eric
I am sailing in same boat as you were. Were you able to capture mouse events on a Table Column. I have urgent client requirement to popup a dialog of right click on TableColumn.
SelectionListener works fine for left mouse click on tableColumn.
I tried to addListener, but It doesn't get rightclick mouse event.
TableColumn.addListener(SWT.MouseDown, new Listener() {
> public void handleEvent(Event event) {
> }
> });
Any help / suggestion regarding this would be greatly appreciated.
Thanks
Jatin Vasa
|
|
|
|
|
Powered by
FUDForum. Page generated in 5.06361 seconds