Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Using two foreground colors in Tree column
Using two foreground colors in Tree column [message #486221] Wed, 16 September 2009 15:33 Go to next message
Peter Stibrany is currently offline Peter Stibrany
Messages: 37
Registered: July 2009
Member
Hello,

in my application, I use Tree widget with multiple columns. In one
column, I display standard OSGi version number, e.g. "1.3.2.qualifier".
I'd like to display qualifier part in grey, because it's not so
important for my users, but rest of version (i.e. "1.3.2" part) should
be in black. Is it possible to do this in Tree column?

Thank you,
-Peter Stibrany
Re: Using two foreground colors in Tree column [message #486226 is a reply to message #486221] Wed, 16 September 2009 15:43 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5014
Registered: July 2009
Senior Member
You need to use owner draw or if you don't want to implement this your
own use the
http://wiki.eclipse.org/JFaceSnippets#Snippet049StyledCellLa belProvider

Tom

Peter Stibrany schrieb:
> Hello,
>
> in my application, I use Tree widget with multiple columns. In one
> column, I display standard OSGi version number, e.g. "1.3.2.qualifier".
> I'd like to display qualifier part in grey, because it's not so
> important for my users, but rest of version (i.e. "1.3.2" part) should
> be in black. Is it possible to do this in Tree column?
>
> Thank you,
> -Peter Stibrany
Re: Using two foreground colors in Tree column [message #486413 is a reply to message #486226] Thu, 17 September 2009 10:21 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
At the swt level:
http://www.eclipse.org/articles/article.php?file=Article-Cus tomDrawingTableAndTreeItems/index.html

Grant


"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:h8rf4h$lt0$1@build.eclipse.org...
> You need to use owner draw or if you don't want to implement this your
> own use the
> http://wiki.eclipse.org/JFaceSnippets#Snippet049StyledCellLa belProvider
>
> Tom
>
> Peter Stibrany schrieb:
> > Hello,
> >
> > in my application, I use Tree widget with multiple columns. In one
> > column, I display standard OSGi version number, e.g. "1.3.2.qualifier".
> > I'd like to display qualifier part in grey, because it's not so
> > important for my users, but rest of version (i.e. "1.3.2" part) should
> > be in black. Is it possible to do this in Tree column?
> >
> > Thank you,
> > -Peter Stibrany
Re: Using two foreground colors in Tree column [message #486475 is a reply to message #486413] Thu, 17 September 2009 14:41 Go to previous message
Peter Stibrany is currently offline Peter Stibrany
Messages: 37
Registered: July 2009
Member
Thank you for examples. I should be able to use these!

-Peter

Grant Gayed wrote:
> At the swt level:
> http://www.eclipse.org/articles/article.php?file=Article-Cus tomDrawingTableAndTreeItems/index.html
>
> Grant
>
>
> "Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
> news:h8rf4h$lt0$1@build.eclipse.org...
>> You need to use owner draw or if you don't want to implement this your
>> own use the
>> http://wiki.eclipse.org/JFaceSnippets#Snippet049StyledCellLa belProvider
>>
>> Tom
>>
>> Peter Stibrany schrieb:
>>> Hello,
>>>
>>> in my application, I use Tree widget with multiple columns. In one
>>> column, I display standard OSGi version number, e.g. "1.3.2.qualifier".
>>> I'd like to display qualifier part in grey, because it's not so
>>> important for my users, but rest of version (i.e. "1.3.2" part) should
>>> be in black. Is it possible to do this in Tree column?
>>>
>>> Thank you,
>>> -Peter Stibrany
>
>
Previous Topic:use Eclipse build-in SpellChecking
Next Topic:Trees and Tables
Goto Forum:
  


Current Time: Mon Apr 21 11:40:59 EDT 2014

Powered by FUDForum. Page generated in 0.06329 seconds