General information
Category:
ActiveX controls in VFP
The parameters are as follows:-
1. Parent Key or empty for root node.
2. Relationship in branch
0 = First
1 = Last
2 = Next
3 = Previous
4 = Child
3. Node Key (Must be unique)
4. Label Text
5. Default Image Index
6. Selected Image Index
For Example:-
*!* Create the root node, notice NO first parameter.
loNode = ThisForm.oleTree.Nodes.Add(, 0, sys(2015), "Parent 1", 1, 2)
*!* Create a child node.
loChild = ThisForm.Nodes.Add(loNode.Key, 4, sys(2015), "Child 1", 3, 4)
Parameters 5 and 6 are dependent on an image list OCX being present on the form. You can assign the image list to the form by using the following:-
ThisForm.oleTree.ImageList = ThisForm.oleImageList
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