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. |