Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Expand node in Treeview
Message
 
À
24/10/2001 13:38:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00572716
Message ID:
00572774
Vues:
22
>Hi George,
>
>>ThisForm.MenuTree.Nodes(NodeKey).Expanded = .T.
>
>I found the EXPANDED property in the help file. The example show a numeric value for the node. Nodes(1).expanded = .T. When I said KEY I meant the KEY I gave it when I added it. i.e. ABA01
>
>How could I now find this numeric value based on the KEY I gave it?

One more thing. If you want the programmatically expanded key to be selected, use ThisForm.MenuTree.SelectedItem = ThisFormMenuTree.Nodes(NodeKey).

One of the reasons, BTW, that I changed your code was to indicate that the NodeKey could be either numberic or character.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform