Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview Control in VFP 6.0
Message
 
To
01/01/1999 04:13:24
Bernd Mesterom
Com Plus Ultra Edv-Beratung
Mönchengladbach, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00171919
Message ID:
00172271
Views:
22
Hi Bernd,

You can obtain quite a bit of information by signing up to Microsoft's MSDN. Don't worry this is FREE.

URL:

http://premium.microsoft.com/isapi/devonly/prodinfo/msdnprod/msdnlib.idc?theURL=/msdn/library/devprods/vs6/vfoxpro/html/vfpstartpage.htm

As far as adding nodes to your TreeView, this could be done by using the TreeView.Nodes.Add() Method.

Example: (you may want to place this code in your Form's or the TreeView's init method. I am assuming that you have placed the treeview object on the form and that changed its name to TreeView)

#DEFINE tvwFirst 0
#DEFINE tvwLast 1
#DEFINE tvwNext 2
#DEFINE tvwPrevious 3
#DEFINE tvwChild 4

*-- Add Root node
oNode = THISFORM.TreeView.Nodes.Add(,tvwFirst,"Root","Root Node")
WITH oNode
.Expanded = .T.
ENDWITH

*-- Add children nodes
THISFORM.TreeView.Nodes.Add("Root", tvwChild, "Node1", "Node 1")
THISFORM.TreeView.Nodes.Add("Root", tvwChild, "Node2", "Node 2")
THISFORM.TreeView.Nodes.Add("Node1", tvwChild, "Node1.1", "Node 1.1")

*-- This should give you a starting point. If you need additional examples let me know.

Good luck
Juan L. Romero
gcandela@javanet.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform