Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing picture on page or form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00490766
Message ID:
00490771
Vues:
10
>Hi,
>
>You can try this in Form Refresh,
>
>
>dlcPhoto=ThisForm.Pageframe1.Page6.Text4.value
>if file(dlcphoto)
>	ThisForm.Pageframe1.page6.Image1.picture=(dlcPhoto)
>	ThisForm.Pageframe1.page6.Image1.visible=.t.
> else
> 	ThisForm.Pageframe1.page6.Image1.picture=" "
>	ThisForm.Pageframe1.page6.Image1.visible=.f.
>
>endif
>return dluResult
>
>HTH
>
>João Batista

Thanks João for a quick reply.

I know I can do that, but I consider that a very messy solution. I want generic code in my page or form and in my base IMAGE class, so that it automatically finds and refreshes images on the page. I don't want to have to hand-tweak it for each form, because I eventually want to let my users add the objects they want to their own forms, and I can't expect them to do that.

I suppose I could have the image.init send a message to the page or form saying "guess what, whenever you do a refresh, you're going to have to refresh me manually." For example, build an array property on the form called .RefreshManually. I'm sure I could make that work, but I was hoping someone out there knew the "right" (simple, clean) way.
Tom Green in Montreal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform