Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select a node in treeview programmatically?
Message
From
15/04/2009 11:42:52
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01394949
Message ID:
01394992
Views:
40
>>>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.

Unfortunately not, I tried:
oForm.oTree1.nodes.EnsureVisible()
oForm.oTree1.node.EnsureVisible()
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform