General information
Category:
ActiveX controls in VFP
Hi Claudio.
I think the problem is that you need to tell the TreeView about the ImageList. For example in the Init of the form:
THISFORM.oTree.ImageList = THISFORM.oImageList
>Hi, foxes!
>
>I'm trying to add a image to my treeview.
>I've put a imagelist control in my form, and added the images.
>Then, when I'm adding a node, I try to define the image in the fifth parameter of .nodes.add()..., or even oNode.Image = 'image's name'... but when I try this, vfp shows me an error:
>OLE IDdispatch exception code 0 from TreeCtrl: ImageList must be initialized before it can be used.
>
>I'm sure it was iniatialized, 'cause I check this in init of the form.
>
>Somebody can tell me what's happening?
Previous
Next
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