Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Non-selectable table?
Non-selectable table? [message #454685] Wed, 27 April 2005 13:43 Go to next message
Mike is currently offline MikeFriend
Messages: 49
Registered: July 2009
Member
Hi. I'm trying to make my swt table unselectable - mouse clicks should be
ignored - no highlighting. I've tried a lot of different things but
haven't gotten anywhere.

Thanks!
Re: Non-selectable table? [message #454695 is a reply to message #454685] Wed, 27 April 2005 14:53 Go to previous messageGo to next message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Try setEnabled(false);

"Mike" <mike.ladwig@ngc.com> wrote in message
news:8cb319cf3f3142c9d5432666d1c4664d$1@www.eclipse.org...
> Hi. I'm trying to make my swt table unselectable - mouse clicks should be
> ignored - no highlighting. I've tried a lot of different things but
> haven't gotten anywhere.
>
> Thanks!
>
Re: Non-selectable table? [message #454696 is a reply to message #454695] Wed, 27 April 2005 15:00 Go to previous messageGo to next message
Mike is currently offline MikeFriend
Messages: 49
Registered: July 2009
Member
I tried that, but unfortunately the table then gets the "greyed-out"
appearance of a disabled control.
Re: Non-selectable table? [message #454785 is a reply to message #454696] Thu, 28 April 2005 16:51 Go to previous messageGo to next message
Emil Crumhorn is currently offline Emil CrumhornFriend
Messages: 169
Registered: July 2009
Senior Member
You can set a background color on a disabled control. If you want white
background to make it look like an enabled table, just do

table.setEnabled(false);
table.setBackground(display.getSystemColor(SWT.COLOR_WHITE)) ;

where "display" is your Display object.

Emil

"Mike" <mike.ladwig@ngc.com> wrote in message
news:22f0e390da96eca9b027ea0f62036a7f$1@www.eclipse.org...
>I tried that, but unfortunately the table then gets the "greyed-out"
>appearance of a disabled control.
>
Re: Non-selectable table? [message #454789 is a reply to message #454785] Thu, 28 April 2005 20:14 Go to previous message
Mike is currently offline MikeFriend
Messages: 49
Registered: July 2009
Member
Thanks for the idea, but it appears that a mask is applied over the text
and icon of a disabled table.
Previous Topic:Title and borderless window?
Next Topic:Image Button on PPC
Goto Forum:
  


Current Time: Thu Apr 25 13:33:13 GMT 2024

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

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

Back to the top