I try to prevent "endless zoomout", resulting in very small image display, by limiting zoomfactor by overriding protected virtual ViewChanging(c: integer; newValue: Double) event.
From the doc, I see that c = 1 for Zoom change. but what is NewValue, and how do I stop zooming out infinitely? I expected that NewValue would be new desired zoomfactor. However, I get negative values for NewValue. Also, how should I prevent further processing? Should that be done by not calling inherited?
Thanks for the explanation, although using a TImageEnView descendant, I would prefer to "build-in" this behaviour by overriding protected methods, rather than using public properties. What is the VieChanging intended use? I could not find a demo that uses it.
I've changed the source so that NewValue is now a var parameter. This should work for you if you override the ViewChanging method. Please email me for the update.