Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select a node in treeview programmatically?
Message
 
 
À
15/04/2009 10:55:49
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:
01394984
Vues:
53
>>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform