Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement