Page 1 of 1

Copying Zoom only ?

Posted: Wed Dec 05, 2007 10:04 am
by 9245066
Hi there,

I want to copy the Zoom form one chart to another.
This means, I want to copy the look of the Chart after the zoom
from one chart, to another chart which is in an opening Form.
First I commit a TRect(the zooming Area) to this form.
Then I show it in Modal mode, but when I use the Chart.Zoomrect procedure in the FormShow, Axes.Bottom.CalcPosPoint seems to be
not ready for calculation -> it returns 0 independent on what TRect
is set to.


I tried it with SaveChartToStream, when Loading I get
the Errormessage that the .tee File has a wrong Format.

I tried copying View3DOptions, but there is nothing stored
what has to do with the look after Zoom, right?

Is there any way to easily copy the Zoom from one Chart
to another?

Kind regards,
Hmi

Posted: Wed Dec 05, 2007 11:04 am
by 9245066
Ok, I found this note in the Manual:
Note: Using conversion functions is only valid after a Chart component has been drawn, either to screen or to a private hidden Canvas.

Where else can I ZoomRect when the Zoom should be visible when the Form is first shown...

Posted: Wed Dec 05, 2007 1:34 pm
by 9245066
Took a Timer to wait till the Chart is drawn...