Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to the set color of a tree row ?
how to the set color of a tree row ? [message #457308] Thu, 23 June 2005 08:13 Go to next message
lars gersmann is currently offline lars gersmannFriend
Messages: 77
Registered: July 2009
Member
hello,

i am using the swt tree control as tabletree (the functionality
introduced in eclipse 3.1m5) and want to set the background color
of a whole row (i.e. treeitem background).

when i set set the tree item background color only the color behind the
item text is set.

any suggestions ?

many regards,


lars
Re: how to the set color of a tree row ? [message #457336 is a reply to message #457308] Thu, 23 June 2005 10:34 Go to previous messageGo to next message
lars gersmann is currently offline lars gersmannFriend
Messages: 77
Registered: July 2009
Member
i answer myself :

set the FULL_SELECTION flag fot the tree and everything works fine.

lars gersmann wrote:
> hello,
>
> i am using the swt tree control as tabletree (the functionality
> introduced in eclipse 3.1m5) and want to set the background color
> of a whole row (i.e. treeitem background).
>
> when i set set the tree item background color only the color behind the
> item text is set.
>
> any suggestions ?
>
> many regards,
>
>
> lars
Re: how to the set color of a tree row ? [message #464373 is a reply to message #457336] Tue, 22 November 2005 09:22 Go to previous message
Mats is currently offline MatsFriend
Messages: 1
Registered: July 2009
Junior Member
Hi Lars,

I tried your solution to set the FULL_SELECTION on the tree but but that makes the only the tree column work as expected. The other columns in the row lost it color. When not using the FULL_SELECTION it worked fine for the other columns but not for the tree column...

Do you know whats causing this?

Mats
Previous Topic:doubts about draw2d
Next Topic:Problems with receiving SelectionChangedEvent notifications
Goto Forum:
  


Current Time: Thu Aug 22 09:40:33 GMT 2019

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

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

Back to the top