Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Thu Jul 03 15:12:12 EDT 2025

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

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

Back to the top