Skip to main content

TreeView in Dialog

  • January 22, 2015
  • 2 replies
  • 0 views

Lars Aune

Is there any examples on how to use

Icons

bold or colored text 

on individual treeitems in dialog manager (net express 3.1)


#treeviewdialognetexpressiconbold

2 replies

Lars Aune
  • Author
  • Participating Frequently
  • January 27, 2015

Is there any examples on how to use

Icons

bold or colored text 

on individual treeitems in dialog manager (net express 3.1)


#treeviewdialognetexpressiconbold

ther is a method to set foreground and background of the whole tree, but tis is not what I want. I want to use different colors on individual items in the tree. Is this possible


Dominique Sacre
Forum|alt.badge.img+2

Is there any examples on how to use

Icons

bold or colored text 

on individual treeitems in dialog manager (net express 3.1)


#treeviewdialognetexpressiconbold

Not by default in the GUI class library. Win32 Tree View custom controls support this via the custom draw functionality. See:-

msdn.microsoft.com/.../ff919569(v=vs.85).aspx

You would need to implement this yourself by subclassing the GUI Class lib TreeViewControl and  treeViewItem and handling the NM_CUSTOMDRAW message.

Regards

David