Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image Control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00703811
Message ID:
00703818
Views:
13
>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..."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform