BCB6 + TeeChart V6Pro.
I want to "rezoom(in)" the chart again to the (previous) area of the zoom box that was manually drawn at run-time by dragging the left mouse button.
How can I get the coords of the zoom box?
How to get ZoomRect of "drag" zoom box at run-time
How to get ZoomRect of "drag" zoom box at run-time
Never mind. I found a solution in the meantime:
1. Save, prior to redrawing the Chart:
Chart->LeftAxis->Minimum, Chart->LeftAxis->Maximum,
Chart->BottomAxis->Minimum and Chart->BottomAxis->Maximum
2. After redrawing the Chart:
Make a TRect with Series->CalcXPosValue() and
Series->CalcYPosValue() using the values as saved in step1.
3. Do a Chart->ZoomRect with the TRect from step2.
1. Save, prior to redrawing the Chart:
Chart->LeftAxis->Minimum, Chart->LeftAxis->Maximum,
Chart->BottomAxis->Minimum and Chart->BottomAxis->Maximum
2. After redrawing the Chart:
Make a TRect with Series->CalcXPosValue() and
Series->CalcYPosValue() using the values as saved in step1.
3. Do a Chart->ZoomRect with the TRect from step2.