Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Class TreeView Control
Message
 
To
29/12/1998 20:58:34
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00171426
Message ID:
00171916
Views:
27
Here is a very quick example:

#DEFINE tvwFirst 0
#DEFINE tvwLast 1
#DEFINE tvwNext 2
#DEFINE tvwPrevious 3
#DEFINE tvwChild 4

THISFORM.TreeView.Nodes.Add(,tvwFirst,"Root","This is the Root Node" )
THISFORM.TreeView.Nodes.Add("Root", tvwChild, "Node1Parent", "This is Node 1 Parent" )
THISFORM.TreeView.Nodes.Add("Node1Parent", tvwChild, "Node1Child", "This is Node 1 Child" )
THISFORM.TreeView.Nodes.Add("Root", tvwChild, "Node2", "This is Node 2 Parent" )

If you are interested in adding images to the nodes, let me know and I will send you another quick sample. In the meantime, this should give you an idea as to how to populate the treeview.

Good luck!
Juan L. Romero
gcandela@javanet.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform