Creating new component derived from TChart
Posted: 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
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