Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Can't hide selection in Table.
Can't hide selection in Table. [message #466029] Thu, 29 December 2005 11:21 Go to next message
Eclipse UserFriend
Originally posted by: yonitcohen.mercury.com

Hi,

I am using table and I want to use it in Read Only mode - the user won't
be able to edit/select data.
I am using SWT.READ_ONLY | SWT.HIDE_SELECTION but for somereason the
user can still select the first column and it is colored.

Any Idea why ?

thanks.
Re: Can't hide selection in Table. [message #466037 is a reply to message #466029] Thu, 29 December 2005 16:51 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
SWT.READ_ONLY is not a valid style for Table.
SWT.HIDE_SELECTION means that the table will only highlight the selected
item(s) when the table has focus. It does stop the user from selecting any
items.

If you do not want the user to be able to select items, you could disable
the table:

table.setEnabled(false).



"YC" <yonitcohen@mercury.com> wrote in message
news:dp0gkl$74h$2@utils.eclipse.org...
> Hi,
>
> I am using table and I want to use it in Read Only mode - the user won't
> be able to edit/select data.
> I am using SWT.READ_ONLY | SWT.HIDE_SELECTION but for somereason the user
> can still select the first column and it is colored.
>
> Any Idea why ?
>
> thanks.
Previous Topic:swt-win32-3138.dll Source Code
Next Topic:RowLayout and scrollable Table in a View?!?
Goto Forum:
  


Current Time: Sun Dec 08 09:18:08 GMT 2024

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

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

Back to the top