Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Changing foreground/background color of selected table row
Changing foreground/background color of selected table row [message #22725] Wed, 22 July 2009 14:40 Go to next message
Thomas Wiedmann is currently offline Thomas WiedmannFriend
Messages: 69
Registered: July 2009
Member
Hello,

how can the fore- and background color of a selected table row be changed -
if possible?
Or is this OS dependent and thus fixed, i. e. not available for changes?

Thomas Wiedmann
Re: Changing foreground/background color of selected table row [message #22769 is a reply to message #22725] Wed, 22 July 2009 16:31 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to use owner draw because the color is coming from the OS. An
example implementation can be found in the following bug I filed against
e4 [1].

The stuff that you are interested in is the ThemeableSelectionLabelProvider.

Tom

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=282279

Thomas Wiedmann schrieb:
> Hello,
>
> how can the fore- and background color of a selected table row be
> changed - if possible?
> Or is this OS dependent and thus fixed, i. e. not available for changes?
>
> Thomas Wiedmann
Previous Topic:ObservableValueEditingSupport sets model value 1st time even if not changed
Next Topic:JFace_Data_Binding/DOM Example
Goto Forum:
  


Current Time: Sat Apr 20 04:04:47 GMT 2024

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

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

Back to the top