Page 1 of 1

Zooming in the StiViewerControl

Posted: Mon Feb 15, 2010 6:59 am
by joro
Hallo!
I've added the StiViewerControl on a panel in one of my forms.
The form has some sort of zooming-logic implemented.When i change the zoom factor of my form, the method SetZoom of the StiViewerControl is called and the zoom facot changes.

But when i change the zoom factor of the StiViewerControl via its context menu, then the zoom factor changed but there is no event that tells my form, that the zoom has changed.
Is there an Event that can be raised to tell another component that the StiViewerControl has changed its zoom factor?

regards
joro

Zooming in the StiViewerControl

Posted: Mon Feb 15, 2010 9:14 am
by Jan
Hello Joro,

Unfortunately we don't have special event to check zoom factor.

Thank you.


Zooming in the StiViewerControl

Posted: Tue Feb 16, 2010 2:36 am
by joro
Is there any chance that you will introduce an event after the zoom value has changed?

Is there a workaround that i could use?
I tried several events, but most of them don't seem to be fired properly.
- MouseClick event is not fired when clicking the StiViewerControl or the context menu
- Paint is not fired after zoom changed...

best regards

Zooming in the StiViewerControl

Posted: Tue Feb 16, 2010 8:08 am
by Jan
Hello,

Please check next prerelease build. ZoomChanged event is added.

Thank you.

Zooming in the StiViewerControl

Posted: Wed Feb 17, 2010 12:52 am
by joro
Hello Jan,

thanks a lot for introducing a ZoomChanged event.
I'm looking forward to the next prerelease build.

best regards