DrawToMetaCanvas in CLX

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
infosys
Newbie
Newbie
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am
Location: Praha
Contact:

DrawToMetaCanvas in CLX

Post by infosys » Wed Dec 22, 2004 5:42 pm

Hi,

I am using DrawToMetaCanvas to draw the graph on another canvas and when I use also LabelsAngle, the graph is drawn incorrectly. Seem, like it calculate the angle everytime it draws something and the angle is increasing all the time.
Reproduce the error very simple, just start new CLX application, put Tchart on Form1 and one button. On ButtonClick put this code:

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
Chart1.Visible:=false;
Chart1.Axes.Bottom.LabelsAngle:=70;
chart1.DrawToMetaCanvas(Canvas,ClientRect);
end;

To see better the problem, add some BarSerie with more values...

Is this bug, or am I just doing something wrong?

Thanx for replies

Pavel Poles

Post Reply