Skip to main content



      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 06: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 11:51 Go to previous message
Eclipse UserFriend
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: Fri Jul 11 21:56:19 EDT 2025

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

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

Back to the top