Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 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?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
soundar Posted - 04 Nov 2008 : 21:36:29
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.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 04 Nov 2008 : 21:51:34
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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07