Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView
Message
 
À
16/02/1999 17:44:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00188022
Message ID:
00188886
Vues:
20
Hi Mark!

Sorry I got back to you so late. Below is a sample for loading data into your TreeView: (I assuming that you TreeView control's name property is set to "TreeView")

#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" )

*-- Root childen
THISFORM.TreeView.Nodes.Add( "Root", tvwChild, "Child1", "This is Child 1" )
THISFORM.TreeView.Nodes.Add( "Root", tvwChild, "Child2", "This is Child 2" )
THISFORM.TreeView.Nodes.Add( "Root", tvwChild, "Child3", "This is Child 3" )

*-- Child of Children
THISFORM.TreeView.Nodes.Add( "Child1", tvwChild, "Child1", "This is Child 1 of Child 1" )

Good luck!
Juan L. Romero
gcandela@javanet.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform