Welcome! Log In Create A New Profile

Advanced

[WD11] Selection Color in TreeView

Posted by David Egan 
David Egan
[WD11] Selection Color in TreeView
August 29, 2008 09:59PM
Is there any way to programmatically change the color and/or font for the selected item in a treeview control? We have a treeview in a sidebar as a menu, with nodes highlighted by a different color. Problem is when the node is selected the selection bar changes the color & font to that set for the control so that it is no longer obvious that the item is a node.

Thanks

David
Al
Re: [WD11] Selection Color in TreeView
August 30, 2008 09:38AM
Hello David

We use the GPen() command to change colours in list boxes. Maybe it is worth a try in the treeview.

We also use ..brushcolour and ..color in tables and they might also be worth a try

Can you turn off the selection colour in the treeview style and then write the select colour in manually as part of the on selection or on entry code and this might allow you to set the colour of the selected node as required ?

Regards
Al
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: