Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Selected node text color.  (Read 98 times)

0 Members and 1 Guest are viewing this topic.

Michal Bandrowski

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Selected node text color.
« on: January 10, 2012, 06:23:44 AM »
What is the most efficient way to change selected node text color ? Actually I don't see any 'fore color' property in SelectedNodeStyle or other places.

Ruslan

  • Flexible TreeView Team
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 569
Re: Selected node text color.
« Reply #1 on: January 10, 2012, 01:39:18 PM »
Plase use properties of the tree.Colors.Text collection. Do define selected node fore color use this code:
Code: [Select]
tree.Colors.Text.EnabledSelected = Color.Red;
tree.Colors.Text.EnabledSelectedInactive = Color.Red;

Second line defines selected node fore color for inactive (not focused) treeview.
 

Copyright © 2006-2012 ARMSoft. All rights reserved.