Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select a node in treeview programmatically?
Message
De
15/04/2009 11:42:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01394949
Message ID:
01394992
Vues:
42
>>>I have a treeview with let's say 200 nodes and want to select a certain node by key if possible from withina program
>>>
>>>
>>>oForm.oTree1.SELECTEDITEM = oForm.oTree1.nodes[ 25 ]
>>>oForm.oTree1.SetFocus()
>>>
>>Great. Now if it just would show the selected node in the tree so the use does not have to scroll to find it :-)
>>(I know I want everything! :-)
>>
>>Thanks alot
>>
>>
>>Peter
>
>
>I believe a call to node.EnsureVisible() method will do it.

Unfortunately not, I tried:
oForm.oTree1.nodes.EnsureVisible()
oForm.oTree1.node.EnsureVisible()
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform