Skip to main content


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 19:33 Go to next message
Peter Stibrany is currently offline Peter StibranyFriend
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 19:43 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 14:21 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
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 18:41 Go to previous message
Peter Stibrany is currently offline Peter StibranyFriend
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: Tue Apr 23 16:30:30 GMT 2024

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

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

Back to the top