NTreeList Not-Focused Selected Node Color


https://www.nevron.com/Forum/Topic7086.aspx
Print Topic | Close Window

By Imanol Yurrebaso - 12 Years Ago
Hello,

I have a NTreeList with some nodes, and I have some buttons next to it which perform certain operations depending on the selected nodes. Specifically, "up" and "down" buttons rearrange the order of the list, moving objects up and down.

Once I click any of the buttons, the treelist loses the focus, but as it remains selected it has a subtle grey background. The problem is that the gray tone is hard to see at first glance, and I want the user to know which element will keep moving up/down if he keeps pressing the button. So I wanted to show a more intense background color (like the default orange when it does have the focus).

I tried modifying the InactiveSelectedState property of the NTreeList; it was gray by default so I thought I had found it, but it doens't seem to work.

Any clue? Thanks in advance.
By Nevron Support - 12 Years Ago
Hello Imanol,

Try to set these properties not by the designer but by code.

nTreeList1.InactiveSelectedState.FillInfo.Gradient1 = color1;
nTreeList1.InactiveSelectedState.FillInfo.Gradient2 = color2;
By Imanol Yurrebaso - 12 Years Ago
That works perfectly. Thank you!