General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only