Creating new component derived from TChart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Torben Laursen
Newbie
Newbie
Posts: 4
Joined: Fri Sep 10, 2004 4:00 am

Creating new component derived from TChart

Post by Torben Laursen » Tue Sep 14, 2004 9:10 am

Hi

In C++ builder 6 using TChart version 7.01 I'm trying to make my own
component derived from TChart.
So make a new package
Select Add, New component and use TChart as the ancestor type
click OK and try to compile I get:
[C++ Error] Chart1.cpp(16): E2352 Cannot create instance of abstract class 'TChart1'
[C++ Error] Chart1.cpp(16): E2353 Class 'TChart1' is abstract because of '_fastcall TCustomAxisPanel::IsFreeSeriesColor(TColor,bool,TChartSeries *) = 0'

If I comment out the function IsFreeSeriesColor in the file TeEngine.hpp I just get a new error

How do I remove this error in the first place?

Thanks Torben

tb
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Aarhus, Denmark
Contact:

Post by tb » Sat Sep 25, 2004 9:05 pm

Hi Torben

Just a hint:
We have made a derived component from TeeChart to ease our special needs and use of the chart. What you have to do is look at TCustomChart and use this as the ancestor - not TChart which is itself a desendant hereof. See the unit Chart.pas.

regards,

-Torben Bach

Post Reply