Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ImageList In ListView or TreeView
Message
 
 
To
08/10/2001 07:27:17
Ls Wong
Vista Solution Sdn. Bhd.
Ampang, Malaysia
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00565418
Message ID:
00565430
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform