Page 1 of 1

TeeChart does not compile with error in TeeSurfa

Posted: Thu Jan 12, 2017 11:02 pm
by 16578797
I have Teechart Pro 2016 v19, used with Delphi 10.1 Berlin update 2 and Intraweb 14.1.4 and am encountering a problem when compiling. I get an error message about "Incompatible types: TCustomAxisPanel and TCustomChart. It only seems to occur with map charts, not ordinary graphs and was not previously evident in v18. The form adds TeeSurfa in the interface uses section for map charts and this is where the problem occurs at line 3415
tmpChart:=ParentChart as TCustomChart;

What do I need to change to get things to compile again?

Thanks
Bruce

Re: TeeChart does not compile with error in TeeSurfa

Posted: Fri Jan 13, 2017 10:57 am
by yeray
Hello Bruce,

I haven't been able to reproduce the problem here.
Note the line 3415 in TeeSurfa.pas falls inside the method TSurfaceSeries.DrawAllValues, so I don't understand how it can be related to maps.

Could you please arrange a simple example project we can run as-is to reproduce the problem here?

Thanks in advance.

Re: TeeChart does not compile with error in TeeSurfa

Posted: Fri Jan 13, 2017 6:45 pm
by 16578797
Will try to make one.

Bruce