Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeItem, background color, plus/minus sign
TreeItem, background color, plus/minus sign [message #461853] Mon, 03 October 2005 11:02 Go to next message
Krzysztof Ogrodnik is currently offline Krzysztof OgrodnikFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

I am using SWT tree and I am setting different colors for different items
(rows) in the tree. I noticed that when I set the color of the tree item
(setBackground) the color of the plus/minus sign (expand/collapse) is not
affected (it uses the global background color of the tree). This is not
exactly what I want because I want to have different colors in the tree
depending on the tree item level. Is there anything I can do to control the
color of the plus/minus sign per tree item? Or make it transparent so it
uses the background color of particular item? I am using SWT on windows.

Kind regards,

Krzysztof
Re: TreeItem, background color, plus/minus sign [message #462020 is a reply to message #461853] Wed, 05 October 2005 01:54 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Not really. Windows decides how a tree item is to be colored and they don't
include the +/-.

"Krzysztof Ogrodnik" <ogrodnikk@axxia.com> wrote in message
news:dhr34p$3kn$1@news.eclipse.org...
> Hi,
>
> I am using SWT tree and I am setting different colors for different items
> (rows) in the tree. I noticed that when I set the color of the tree item
> (setBackground) the color of the plus/minus sign (expand/collapse) is not
> affected (it uses the global background color of the tree). This is not
> exactly what I want because I want to have different colors in the tree
> depending on the tree item level. Is there anything I can do to control
the
> color of the plus/minus sign per tree item? Or make it transparent so it
> uses the background color of particular item? I am using SWT on windows.
>
> Kind regards,
>
> Krzysztof
>
>
Previous Topic:StyledText(ScrollBars problem)
Next Topic:SWT constant for the SPACE bar
Goto Forum:
  


Current Time: Thu Sep 26 05:30:28 GMT 2024

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

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

Back to the top