Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add picture to tree
Message
From
01/03/2001 04:08:37
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00475208
Message ID:
00480861
Views:
21
I it works

Thanks for your help

Jan Dorresteijn

>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform