Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clicking on a given item of a treeview control
Message
De
23/07/2008 13:21:33
 
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:
01333488
Vues:
8
>>>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 :-)

Good one... You're right... And, this one means a good care... Because this is a tipical care not too relevant on development environment.. But, So important when the integration with end-user pass thorugh of a clean interface.. Thanks
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform