ZoomRect units
Posted: Wed May 13, 2009 7:46 pm
Using TChart 8.0 in MSVC 2008.
The documentation I have gives an example of using ZoomRect as follows
//zoom in
TChart1.Zoom.ZoomRect 5, 5, TChart1.Width - 5, TChart1.Height - 5
// zoom out
TChart1.Zoom.ZoomRect - 5, - 5, TChart1.Width + 5, TChart1.Height + 5
which leads me to believe the following would have no affect on the chart:
// no zoom
TChart1.Zoom.ZoomRect 0, 0, TChart1.Width, TChart1.Height
However all of these when converted to C++ (Chart.GetZoom().ZoomRect...) result in zooming out, never in.
So, my question is, how can I find the current zoom rectangle?
For my current purpose I can get around this using zoompercent and playing games with the axis extents, but zoomrect offers a much simpler solution (if I can figure out how it works).
Thanks,
Jeff Bell
The documentation I have gives an example of using ZoomRect as follows
//zoom in
TChart1.Zoom.ZoomRect 5, 5, TChart1.Width - 5, TChart1.Height - 5
// zoom out
TChart1.Zoom.ZoomRect - 5, - 5, TChart1.Width + 5, TChart1.Height + 5
which leads me to believe the following would have no affect on the chart:
// no zoom
TChart1.Zoom.ZoomRect 0, 0, TChart1.Width, TChart1.Height
However all of these when converted to C++ (Chart.GetZoom().ZoomRect...) result in zooming out, never in.
So, my question is, how can I find the current zoom rectangle?
For my current purpose I can get around this using zoompercent and playing games with the axis extents, but zoomrect offers a much simpler solution (if I can figure out how it works).
Thanks,
Jeff Bell