Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clicking on a given item of a treeview control
Message
 
To
23/07/2008 13:09:22
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01333305
Message ID:
01333482
Views:
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 :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform