General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only