This discussion is archived
1 Reply Latest reply: Feb 8, 2013 11:28 AM by jsmith RSS

How to create a Zoom like effect?

ril3y Newbie
Currently Being Moderated
Hello,

I have a Pane right now that I am drawing lines inside of. Its actually drawing coordinates coming back from my hardware device (a cnc controller).

What I would like to be able to do is mouse wheel in (or out) and only see a portion of the pane. Scaling does not seem to fit my need. Perhaps there is nothing out there like this? I am sorry if this is not clear. Here is a picture of my GUI.

http://www.flickr.com/photos/rileyporter/8451829160/in/photostream

The pane is the red dashed outline. I would like to place my mouse say over the top of the green line... Mouse wheel up and have the red dashed lines stay where they are at, however only seeing the top of the green line filling the whole red dashed outline. I am not sure what / how to achieve this effect.

Does that make sense?
  • 1. Re: How to create a Zoom like effect?
    jsmith Guru
    Currently Being Moderated
    Scaling does not seem to fit my need.
    Why not?

    Can you describe in more detail what you tried, how you implemented it, how it behaved and how that behaviour differed from what you need?

    Perhaps supplying a simple, sample test case of executable code as well might help get your question answered.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points