Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX Image Control change of images in the instance
Message
De
23/01/2002 10:49:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00608780
Message ID:
00609026
Vues:
14
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
Fil
Voir

Click here to load this message in the networking platform