Profile Picture

NTreeList Not-Focused Selected Node Color

Posted By Imanol Yurrebaso 12 Years Ago
Author
Message
Imanol Yurrebaso
sad Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
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.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hello Imanol,

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

nTreeList1.InactiveSelectedState.FillInfo.Gradient1 = color1;
nTreeList1.InactiveSelectedState.FillInfo.Gradient2 = color2;

Best Regards,
Nevron Support Team



Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
That works perfectly. Thank you!



Similar Topics


Reading This Topic