Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

Diagram zooming / scrolling

Last post 09-08-2009 8:20 AM by SabbeRubbish. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-08-2009 8:20 AM

    Wink [;)] Diagram zooming / scrolling

    Hi all,

    This is my first post, please be gentle Wink

    I want to zoom+scroll to mouse pointer at the same time on a Diagram.
    The code I use:

    private void OrganigramControl_MouseWheel(object sender, MouseEventArgs e) {
      if (this.Zoom + (e.Delta / 10) > 0) {
          this.Zoom += (e.Delta / 10);
          this.AutoScroll = true;
          this.AutoScrollPosition = e.Location;
      }
    }

    The problem with this is, that the "scrolling" is plain ugly...  It shakes heavily when scrolling.
    Does anyone have an idea on how to fix this?  Thank you!

    Filed under: , ,
    • 81.246.118.226
Page 1 of 1 (1 items)