Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autoexpand special treeview nodes
Message
 
À
20/04/2010 05:15:37
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01461037
Message ID:
01461038
Vues:
45
>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

In VFP there is also property named FULLPATH:
lcFullPath = thisform.TreeView.Nodes("n2.2b2").FullPath
WAIT WINDOW m.lcFullPath
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
Répondre
Fil
Voir

Click here to load this message in the networking platform