General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only