Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Changing Table selection color
Changing Table selection color [message #445473] Fri, 05 November 2004 23:11 Go to next message
Chris Audley is currently offline Chris AudleyFriend
Messages: 41
Registered: July 2009
Member
Is there a way to change the foreground and background color used to
highlight selected rows in a table?

Right now, the only thing I can think of is to register as a selection
listener and manual change the background and foreground color on
TableItem's as the selection set changes. Is this going to be
overridden by the system selection colors anyway?
Re: Changing Table selection color [message #445644 is a reply to message #445473] Mon, 08 November 2004 15:57 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
There is no way to override the color for the selection foreground and
background. When you call TableItem.setForeground or
TableItem.setBackground, the color chosen is not applied to the selected
item.

"Chris Audley" <chris.audley@beacon-cs.com> wrote in message
news:cmh1ab$m0r$1@eclipse.org...
> Is there a way to change the foreground and background color used to
> highlight selected rows in a table?
>
> Right now, the only thing I can think of is to register as a selection
> listener and manual change the background and foreground color on
> TableItem's as the selection set changes. Is this going to be overridden
> by the system selection colors anyway?
Previous Topic:Maximize on Windows
Next Topic:How to open a specific help page programatically.
Goto Forum:
  


Current Time: Sun Oct 25 05:39:57 GMT 2020

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

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

Back to the top