Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update an image that is changed after showing it?
Message
 
 
À
27/11/1996 11:56:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00013719
Message ID:
00013730
Vues:
43
>>>The problem is that I can NOT update the image that has changed.
>>
>>What if you try Thisform.MyImage.Picture=Thisform.MyImage.Picture ?
>>
>>Nick
>
>I think it should work but if not you can create Image control class and remove/add object on form programmatically.
*** example **
THISFORM.PICTURE="c:\myoldpic.bmp"  && this was the setting of 
                                    && the form prior to modification
*******  code goes by ***

THIS.PARENT.PICTURE=""                  && Set it to nothing and on the  
THIS.PARENT.PICTURE="c:\myoldpic.bmp"   && next line reset it to the 
                                        && origional.  This forces a 
                                        && re-read of the file, thus
                                        && reflecting your changes

*** eoe **
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform