Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clicking on a given item of a treeview control
Message
 
À
23/07/2008 13:09:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01333305
Message ID:
01333482
Vues:
9
>>I am understanding correctly that you want your treeview to have a node selected upon initialization? If that is the case, you do not need to click on the treeview, you need to change the TreeView's SelectedItem property to the node you want selected. As I do not see the code you are using to build it, I am not sure how to do it, but usually you would use the KEY something like:
>>
>>
>>with yourTreeView
>>	.SelectedItem				= .Nodes(lcKey)
>>endwith
>>
>
>Hello Hugo.. Thanks...
>
>Yeah you got it.. This is what I've been trying to do....
>
>Your idea point me to a solution... The node object reference was passed by a user method fired during a nodeclick..
>
> I wasn't reaching how may I could get that information outside of this method... Nodes(lcKey) was my answer..
>
>
>Thank you
>
>Claudio

Don't forget to run EnsureVisible for the SelectedItem :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform