Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the icon of a treeview node
Message
De
02/11/2004 15:24:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
00957159
Message ID:
00957276
Vues:
15
>Providing the imagelist picture as the same name as the key, and the image file's extensions are the same (BMP or ICO or etc):
>MyImageList.ListImages.Add(1,[MYIMAGE],LoadPicture("MYIMAGE.BMP"))
>You can use the picture attribute of the node to get the first name:
>MyTreeview.Nodes.Add(,1,[Key],[NodeText],[MYIMAGE])
>The first name would be:
>lcImageName=MyTreeView.nodes('Key').Image
>The image file would be:
>lcImageFile=lcImageName+[.BMP]


lcImageName is returning a number not a character.. maybe because I am populating my treeview by index of my imagelist (populated on design mode)
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform