Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView
Message
From
18/02/1999 12:31:00
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00188022
Message ID:
00188908
Views:
25
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform