Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Image Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00703811
Message ID:
00703818
Vues:
15
>I have placed an Image control on a Form, and its working fine.
>
>I allow the user to set the Stretch property in a setup screen. However, Stretch exhibits unusual behavior once it is set to 0. When I change Stretch from Stretch = 1 to Stretch = 2 or vice versa - there is no problem (the image is resized as needed). But, once I change to Stretch = 0, changing Stretch back to 1 or 2 makes no difference (the Image is not changed). I am using code like:
>
>
>* DefaultSvStretch either contains 0, 1, or 2.
>THISFORM.ImgVisual.stretch = THISFORM.Oapp.defaultsvstretch
>THISFORM.ImgVisual.Picture = m.cSvPathFld
>THISFORM.ImgVisual.Visible = .T.
>
>
>Any thoughts on why it has this behavior when set to 0 is appreciated.
>
>Mel Cummings

Hi Mel,

I believe that the problem you are seeing goes away if you resize the Image control after changing the Stretch property. That's a workaround, not an explanation of the inconsistency.

Mike
Montage

"Free at last..."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform