Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 How to zoom in and out by clicking Zoom buttons?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soundar

51 Posts

Posted - 04 Nov 2008 :  21:36:29  Show Profile  Reply with Quote
I have a real-Time application in which I display the coordinates of a moving object. The object moves on a plate, for example, 100 cm x 100 cm. I draw the plate (3d frame object) and then draw a blob (filled circle) to represent the object. I also show the show the x and y axes. (Please see attached JPG file).

Now I want to add buttons to zoom in and out of the graph. *Not by using a mouse* (ChartZoom object) but when you click the zoom-in button the graph shows only the inner 50 x 50 area, when you click again show the inner most 40 x 40 area and so on... When the user clicks the zoom out button, the action is reversed.

How can I do this?

Thanks.

quinncurtis

1586 Posts

Posted - 04 Nov 2008 :  21:51:34  Show Profile  Reply with Quote
You re-scale the coordinate system based on what button is pressed. Our MiniScope example program does something very similar to what you describe. Study that example.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07