Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Add method meaning of parameters.
Message
From
21/03/2000 05:54:25
 
 
To
21/03/2000 05:14:01
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00348233
Message ID:
00348235
Views:
22
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
Map
View

Click here to load this message in the networking platform