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

 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
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


51 Posts

Posted - 11 Feb 2014 :  12:42:45  Show Profile  Reply with Quote
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.


1569 Posts

Posted - 11 Feb 2014 :  16:58:55  Show Profile  Reply with Quote
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.
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