Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ImageList In ListView or TreeView
Message
 
 
À
08/10/2001 07:27:17
Ls Wong
Vista Solution Sdn. Bhd.
Ampang, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00565418
Message ID:
00565430
Vues:
22
>how to make use of imagelist in listview or treeview.
>URGENT!!
>Thaks a lot.

You must initialize the Imagelist first by adding images to it.
With MyImagelist
   .ListImages.Add(,'Image1',LoadPicture('MyPictureFile1.bmp'))
   .ListImages.Add(,'Image2',LoadPicture('MyPictureFile2.bmp'))
Endwith
Then in the Treeview/ListView, you can associate the two by assigning the ImageList property to your Imagelist object.

MyTreeview.Imagelist = MyImagelist

When you add a node to your treeview, you can specify the index of the image you want to use with that node.
With MyTreeview.Nodes
   .Add(,4,'key expression','Display text','Image2')
Endwith
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform