Copying Zoom only ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
HMI
Newbie
Newbie
Posts: 32
Joined: Fri May 11, 2007 12:00 am

Copying Zoom only ?

Post by HMI » Wed Dec 05, 2007 10:04 am

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

HMI
Newbie
Newbie
Posts: 32
Joined: Fri May 11, 2007 12:00 am

Post by HMI » Wed Dec 05, 2007 11:04 am

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...

HMI
Newbie
Newbie
Posts: 32
Joined: Fri May 11, 2007 12:00 am

Post by HMI » Wed Dec 05, 2007 1:34 pm

Took a Timer to wait till the Chart is drawn...

Post Reply