Skip to main content



      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 12:38 Go to next message
Eclipse UserFriend
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 00:28 Go to previous message
Eclipse UserFriend
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)
Previous Topic:ScrollBar pageup, pagedown not responding
Next Topic:[ANN]: eclipse-games 3.1 released
Goto Forum:
  


Current Time: Fri Jul 04 17:28:19 EDT 2025

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

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

Back to the top