Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Expand treeview
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Expand treeview
Divers
Thread ID:
00647884
Message ID:
00647884
Vues:
39
I am trying to expand my treeview through command button. When the user press the command button, I want the node to expand from a selected point. I have the following code, my only problem is how do I identify the nodekey?

*cmdbuttonexpand
.OleTreeView.nodes(.llnode).expanded = .t.

In my OleTreeView.nodeclick I have the following code:

*OleTreeView.nodeclick()
LPARAMETERS node
WITH thisform
.nodevalue = .OleTreeView.selectedItem.fullpath
.nodevalue = STRTRAN(.nodevalue,'\',' ')
.nodepath = .OleTreeView.selectedItem.fullpath
.llnode = node
ENDWITH

I set the "node" to ".llnode" assuming that is the key, but it dosen't work. Where can I set the nodekey to a property so I can pass it in my expand command or I should say how do find the parameter llnode.

Thanks
Nick Patel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform