Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling image in Image control
Message
 
To
05/04/2018 04:55:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01659160
Message ID:
01669325
Views:
82
>>Just off the top of my head... Put the image control into a container with a scroll control.
>
>I tried putting the image control on a form that has scroll enabled. The scroll works but the image stays the same, as far as the size.

> What Greg said. Make the image as large as you need it, so it'll probably be larger than the container. You then manipulate the position of the image (mostly to negative values) so that different parts of the image become visible as the scrollbars move.

Putting an image control into a container, .stretch=1 and adding code in MouseMove and MouseWheel to change the image’s control .left, .top, .height or width properties works well for me to provide a visual “zoom” or “pan” capability. But is there a ready means to save that resized image? I’ve considered STRTOFILE(.pictureval) but changes to the image control’s .height or .width don’t seem to change .pictureval’s contents. Or I do I need to, say, record the new vs. old dimensions, make a copy of the underlying data source, and then work with gdiplus to resize that copy?
Previous
Reply
Map
View

Click here to load this message in the networking platform