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.SetButtonMask(System.Windows.Forms.MouseButtons.Left) zoomObj.SetZoomYEnable(True) zoomObj.SetZoomXEnable(True) zoomObj.SetZoomXRoundMode(ChartObj.AUTOAXES_FAR) zoomObj.SetZoomYRoundMode(ChartObj.AUTOAXES_FAR) zoomObj.SetZoomStackEnable(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.
|
|
|