Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems customizing TreeView

Status
Not open for further replies.

tolemac

Programmer
May 4, 2003
8
RO
Hi! I’m having problems customizing a TreeView. I have a tree that contains two kinds of nodes: nodes that have children and nodes that don’t have children (leafs). I want to display only the nodes that are not leafs in the tree view. I’m having also a ListView where I’m displaying the content of the selected node. It’s something similar with the Explorer. In the TreeView you have only the folders and in the ListView you have the folders and the files. How can I do that?

 
Hi,
what you mean with:
"I want to *display* only the nodes that are not leafs in the tree view" ?

*Display* means that you leave the nodes closed ?
Because if you delete the leafs of a node, the node itself becomes a leaf of his parent.

Maybe you'll better build the TTree without unwanted nodes from the beginning, or build a Dynamic tree where onOpen a node, you'll decide where to add some childs And / OR fill the ListView .
When closing you may or not delete all the subnodes.

Ciao,
Geppo Darkson.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top