Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Zooming into a graph with 2 transforms/scrollframe

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

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

* Forum Code is ON
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 - 11 Feb 2014 : 12:42:45
In my application, I have graphs on the y1 axis and y2 axis (on the right hand side, what Excel calls a secondary axis). So two transforms, y1Transform and y2Transform, 2 scroll frames and some plots tied to the y1Transform and some to y2Transform.
I use the standard boilerplate code for zooming in.
Dim tArray() As CartesianCoordinates

tArray = New CartesianCoordinates() {y1Transform, y2Transform}
zoomObj = New ChartZoom(chartVu, tArray, True)
zoomObj.SetZoomRangeLimits(New Dimension(1, 0.001))
zoomObj.InternalZoomStackProcesssing = True
However when I zoom in only the plots tied to the y1Transformare being zoomed, not the ones tied to the y2Transform.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 11 Feb 2014 : 16:58:55
Sorry, but we have no idea based on the code you show. Our QCRTGraph example program RTStockDisplay is similar to what you describe (RTScrollFrame, two coordinate systems, two y-axes) and properly zooms both at the same time. I can only guess that when you create the ChartZoom object, your the value of y2Transform no longer points to the coordinate system you think it does.

Get rid of the call to
zoomObj.SetZoomRangeLimits(New Dimension(1, 0.001)). That may not apply to your scale.

If you can't solve the problem you may need to create a simple example program which reproduces the problem and send that to us at support@quinn-curtis.com.

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