Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autoexpand special treeview nodes
Message
From
20/04/2010 05:28:46
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
20/04/2010 05:15:37
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01461037
Message ID:
01461041
Views:
84
This message has been marked as the solution to the initial question of the thread.
Hallo Albert,

for what I remember
given that the Node exists, select the Node and use its ensurevisible method.
*snip
 lcKey = "n2.2b2"
 .ocxTree.NODES(lcKey).ENSUREVISIBLE
*/snip
HTH
Agnes

>Hello Everybody
>
>I have a treeview structure with about 2000 nodes over n levels.
>Normaly only the root is expanded.
>Now the user wants to see the full path from a special child node backwards to root(= autoexpand all nodes that point to the special child).
>(expanding the parent node of the child + the parent node of the parent node + ... = fullpath backwards)
>Example:
>root
>n1,n2,n3
>...,n2.1,n2.2,n2.3,...
>...,n2.2a,n2.2b,n2.2d,....
>...,n2.2b1,n2.2b2,...
>
>So if the given child key is n2.2b2 i want to expand root,n2,n2.2,n2.2b and point to n2.2b2
>The keys of the nodes have no structured id's as in my example. (just idnnnnnn)
>In VB there is a function "fullpath" to handel this.
>How to code this behavior in foxpro.(VFP 9.2)
>
>Any help welcomed.
>Best regards
>Albert
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform