Bhavbhuti,
I've never been able to get it to work. The instance never seems to pick up the changes. You can always create a container that contains the treeview and creates the imagelist using code. This way you'll get the imagelist with the updated images. Of course, if you resize the treeview, any instance will not recognize this. You can get around this by putting code in to resize the treeview at run time.
You can always load the images at runtime, but I think you have to have them physically located on the disk as opposed to compiled into the exe. Could be wrong.
Dan
>I wanted to contain the whole jing-bang. I wanted a drag-drop treeview with all in it, thus.
>
>>>I have put a TreeView and an Image control onto a contaniner class and saved it as a class. When I instantiate the container onto a form things work well but if I change the images of the image control, the originally stored images display when the form is run.
>>>
>>>How can I change the images on an instance by instance basis.
>>
>>Bhavbhuti,
>>
>>You could create the imagelist as a seperate class. In the init of the form assign a new instance of the imagelist subclass to a form property.
>>
>>THIS.ImageList = NEWOBJECT('MyImages','ImageListLib')
>>
>>Then you can assign it to the tree.
>>THIS.TreeView.ImageList = THIS.ImageList.Object
>>
>>I think, anyway.
>>
>>Dan
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement