Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add picture to tree
Message
 
 
To
13/02/2001 06:31:59
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00475208
Message ID:
00475361
Views:
27
>I am using mscomctlib.treecrtl and mscomctlib.ImagelistCtl
>
>It is working but i want to add an image to the tree on runtime.
>
>how can help me
>
>Kind Regards
>
>
>Jan Dorresteijn

You can use the ListImages.Add method to add as many images you want at run-time.

Ex.
Imagelist.ListImages.Add(,'imagekey',LoadPicture('newimage.bmp'))

Once bound, all images will be displayed using the ImageHeight and ImageWidth properties. They are read-only but you can still add images all you want. When you add nodes to the Treeview, just use the indexkey of the new images.

Treeview.Nodes.Add(,TVWCHILD,'nodekey','Display Text','imagekey')

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform