Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview Control in VFP 6.0
Message
 
À
01/01/1999 04:13:24
Bernd Mesterom
Com Plus Ultra Edv-Beratung
Mönchengladbach, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00171919
Message ID:
00172271
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform