Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tree view menu
Message
 
 
À
17/03/2004 14:41:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00887215
Message ID:
00887305
Vues:
12
John,

You might want to go to my website and look at the treeview101 sample there. It gives some well documented code on how to hook the imagelist to the treeview and how to assign the images to each node.

>Hi all, i'm trying to do a menu using treeview control to show users options and preserve the last option used next time they start the app. I put a treeview control on a form and this in the init event of it:
>
>LOCAL o, oNode
>o= thisform.oletree
>oNode=o.Nodes.Add(,1,"1_", "Compraventa",0)
>oNode.Image="manos"
>o.Nodes.Add(,1,"2_", "Utilidades",0)
>o.Nodes.Add(,1,"3_", "Ayuda",0)
>o.Nodes.Add("1_", 4, "4_", "Contratos",0)
>
>image "manos" is on imalistcontrol on same form, but this oNode.image="manos" shows an error.
>
>i need to save last option used in a local table and show this option next time user log in the app. Also i need to show images for each option, Some ideas?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform