Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView
Message
De
18/02/1999 12:31:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00188022
Message ID:
00188908
Vues:
23
Thanks Juan, one more question
Does this code works with the Microsoft TreeView that comes wiht VFP5.0
'Couse when I added to my form, It becomes an Ole object then It gave me an
error,, kind like "this class needs 3 parameters " , and It stops..

any ideas on how to make it work??


>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform