Page 1 of 1

enabling TChart3D Depth axes causes crash

Posted: Wed Jul 02, 2014 2:46 pm
by 16566563
Dear Yeray,

I'm currently using TChart3D with three TSurfaceSeries. Enabling the BottomAxis, LeftAxis by setting its visible property to TRUE (Chart3D.Axes.Bottom.visible:=TRUE for example) is working fine - the bottom and LeftAxis are shown as expected. If I set Chart3D.Axes.Depth.Visible:=TRUE or Chart3D.Axes.DepthTop.Visible:=TRUE the program crashes in function TwinControl.Painthandler ? It also crashes if I set the "Visible" properties of those two axes in the TChart Editor at design time!
Do you have an idea whats going wrong here ?

Best regards,

Klaus

Re: enabling TChart3D Depth axes causes crash

Posted: Thu Jul 03, 2014 11:18 am
by yeray
Hi Klaus,

I could reproduce the problem so I've created a new ticket in the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=826

Re: enabling TChart3D Depth axes causes crash

Posted: Fri Jul 04, 2014 9:39 am
by yeray
Hello,

This seems to work as a workaround for me here:

Code: Select all

uses TeeChart3D, TeeSurfa;

var Chart3D1: TChart3D;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart3D1:=TChart3D.Create(Self);
  Chart3D1.Parent:=Self;
  Chart3D1.Align:=alClient;

  Chart3D1.Chart.AddSeries(TSurfaceSeries).FillSampleValues();

  Chart3D1.Chart.Axes.Depth.Visible:=true;

  Chart3D1.Chart.OnBeforeDrawAxes:=ChartBeforeDrawAxes;
end;

procedure TForm1.ChartBeforeDrawAxes(Sender: TObject);
begin
  Chart3D1.Chart.Canvas.View3DOptions:=Chart3D1.Chart.View3DOptions;
end;