Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ctrl-click on a table column
ctrl-click on a table column [message #445335] Tue, 02 November 2004 17:38 Go to next message
Mia Stern is currently offline Mia SternFriend
Messages: 19
Registered: July 2009
Junior Member
Hi-

I'm trying to detect a ctrl-click on a table column. I have extended
SelectionAdapter, and called
TableColumn.addSelectionListener(SelectionAdapter). In my
widgetSelected method, regardless of what keyboard key is clicked, the
column state of the selection event is always 0. I was assuming it
would be different depending on the key pressed.

Is there something else I have to implement? Is this even doable on a
TableColumn?

Thanks for any help.

- Mia
Re: ctrl-click on a table column [message #445339 is a reply to message #445335] Wed, 03 November 2004 05:28 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Mia Stern <mia_stern@us.ibm.com> wrote:

> I'm trying to detect a ctrl-click on a table column. I have extended
> SelectionAdapter, and called
> TableColumn.addSelectionListener(SelectionAdapter). In my
> widgetSelected method, regardless of what keyboard key is clicked, the
> column state of the selection event is always 0. I was assuming it
> would be different depending on the key pressed.

> Is there something else I have to implement? Is this even doable on a
> TableColumn?
I also have same problem.
Solved by adding global even filter for Display ( addFilter() ) and tracking
Ctrl state myself.

--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)


Konstantin Scheglov,
Google, Inc.
Previous Topic:ScrollBar pageup, pagedown not responding
Next Topic:[ANN]: eclipse-games 3.1 released
Goto Forum:
  


Current Time: Fri Apr 19 15:52:54 GMT 2024

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

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

Back to the top