Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview ref from node
Message
De
28/03/2001 11:41:03
 
 
À
28/03/2001 10:02:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00487033
Message ID:
00489483
Vues:
13
>can you give more information on what you are trying to do? some code??
>
>>>>Hi,
>>>>
>>>>How can I get a ref to the treeview object from a node object ref? 'Parent' only returns the parent node.
>>>>
>>>>TIA,
>>>
>>>
>>>If you need the key of a node it is node.key. Any node can be ref by the unique key. An example of the treeview is on my web site as well as a programmers help file that will have tons of code examples in it..
>>>
>>>http://www.semo.net/suburb/thornton/visual.html
>>
>>John, thanks for replying, but perhaps you shoud re-read my question. I don't need keys, indexes, or other node references - I need the ref to the TREEVIEW OBJECT from a node object reference.
>>
>>Thanks,

OK - suppose you have a method that receives a node object as a parameter. The node can be from one of several treeviews on your form. Now - you need to do something to the treeview object itself (expand it's width as a silly example) in your method. So my Method Is:
lparameters toNode
toTreeView = MagicGetTreeObjectFromNodeFunction(toNode)
to.Treeview.width = toTreeview.width + 100
Hope this explains it,
Ken B. Matson
GCom2 Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform