[Gambas-user] How can I flush the image cache?

Fabien Bodard gambas.fr at ...626...
Sun Apr 15 21:46:41 CEST 2012


2012/4/15 M. Cs. <mohareve at ...626...>:
> OK. I solved it with using Picture.Load(myimage) instead of Picture[myimage].
>
> Like in this example:
> fView.Add(x, x, Picture.Load(myimage), 0).EnsureVisible
this way you not use the cache ... yes it's correct
> Is this the correct way?
>
> Csaba
>
> 2012/4/15, M. Cs. <mohareve at ...626...>:
>> It happens that I change the pictures of a TreeView items during
>> runtime. When I clear the TreeView and repopulate, the pictures
>> remains the same, although I did changed the source image used to be
>> display. After the restart of the program, the proper new picture is
>> shown.
>> Is there a way for update during runtime?
>>
>> Csaba
>>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list