||Re: Image class
Marc VdB <firstname.lastname@example.org>
||Mon, 11 Nov 2019 18:36:54 +0100
> I am using image object in my application where it requires zooming. > I can zoom image by increasing height and width property of image
object. But I wonder if there is way to zoom where the image size on the
form remains same and particular portion of image is zoomed.
I see, that Ken gave you a possible solution already :-)
Attached is another approach to fullfill your task. By coincidence,
Graham Monk asked in the "how-to" group about a moveable and sizeable
object, so a good part comes from there (especially as Rich showed how
to use it with images...)
The minimum version of dbase for this is version 8 (callback) and a
restriction is, that your form has to use metric = 6 (pixel)
You can use the mousewheel to zoom in and out of the picture (or call
the zoom metof with true or false) and by clicking on it, you can move
the image around. The size and position is automatically restricted to
the initial values...
HTH and is another possible starting point for ideas.