views:

82

answers:

2

Hi,

I use simultaneously several TVirtualStringTree on the same form.

If a tree has a selected node, but the focus is currently on another tree, the selection is highlighted with a pale gray color.

Is there a simple way to have the selection of an unfocused TVirtualStringTree highlighted with the usual selction color (blue on my computer) ?

Thanks

+2  A: 

Okay, I found it : TVirtualStringTree has a "Color" property, with configurable subcolors, such as "UnfocusedSelctionColor" ...

Thanks, StackOverflow, for taking the glue out of my eyes :-)

LeGEC
+3  A: 

While setting the colours will work, the "correct" method is enabling TreeOptions --> PaintOptions --> toPopupMode

toPopupMode  // Paint tree as would it always have the focus (useful for tree combo boxes etc.)
glob
Works perfect. Thanks.
LeGEC