Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

Re: ZoomChanged Event affects annotations

  •  02 Dec 2007, 12:45 AM

    Re: ZoomChanged Event affects annotations

    The WebAnnotationViewer needs to bind to the parent WebImageViewer's ZoomChanged event, setting this to a function of your own instead of using atalaEventAdd will cause it to break all annotation specific operations (such as automatically resizing annotations)

    This is the recommended way to attach to this event:

    atalaInitClientScript('OnPageLoad();');

    function OnPageLoad(){
       atalaEventAdd(this, WebAnotationViewer1, 'ZoomChanged', OnZoomChanged);
    }

    function OnZoomChanged(){
       // do stuff ...
    }


    David Cilley
    My AJAX Imaging Blog
    Atalasoft Development Team
View Complete Thread