|tableviewer selections [message #642339]
||Tue, 30 November 2010 20:35
| fran81 Missing name
Registered: November 2010
I have a tableviewer with cells that are not-editable.
BY default cells in the first column can be selected. How do I make the table completely not selectable?
I can only find ways to select the entire row, or to select also other columns....(using SWT.FULL_SELECTION...etc..)
|Re: tableviewer selections [message #642397 is a reply to message #642393]
||Wed, 01 December 2010 07:59
| Daniel KrÃ¼gler
Registered: July 2009
On 12/1/2010 08:51, Tom Schindl wrote:|
> Am 01.12.10 08:30, schrieb Daniel Krügler:
>> On 11/30/2010 21:35, fran81 wrote:
>>> I have a tableviewer with cells that are not-editable.
>>> BY default cells in the first column can be selected. How do I make the
>>> table completely not selectable?
>> The intuitive choice would be to set the enablement property of the
>> underlying widget to false.
> This would have the draw back that you can't even scroll the widget
> which is very often not the desired behavior.
<nod>, I understand that, but the exact use-case of the OP was not clear
to me (which is often the case, if people are not describing more
precisely their intentions). Sometimes this is exactly what you want,
sometimes not. Therefore, and with the second situation in mind, I added
"If viewer.getTable().setEnabled(false) does not what you want"
Powered by FUDForum
. Page generated in 0.02484 seconds