Page 1 of 1

AMC on Delphi 2007

Posted: 2008-12-20 21:39:04
by pinterpeti
Hi!

I'm trying to compile AMC on Delphi 2007. There were a lot of problems, with the components, because many of them is incompatible with this Delphi version (don't even install). Now I've stucked with one message, which says "Class TChart not found" If I click to ignore the compiling stops at

Code: Select all

TheChart.SeriesList.Series[0].Active := idx in statItemsChart;
TheChart.SeriesList.Series[1].Active := idx in statItemsPie;
If I comment these lines out there is one more beginning with TheChart. After commenting out that one too it finally compiles. But with some warnings:

Code: Select all

Field StatsWin.TheChart does not have a corresponding component. Remove the declaration?
Field StatsWin.Series1 does not have a corresponding component. Remove the declaration?
Field StatsWin.Series2 does not have a corresponding component. Remove the declaration?
I don't know what component is missing :( Can you help me?

Posted: 2008-12-20 23:36:00
by bad4u
This affects the TeeChart component that should be part of Delphi 2007. When outcommenting these lines AMC statistics (charts) should not work anymore.

Try changing lines

Code: Select all

268:   TheChart.SeriesList.Series[0].Active := idx in statItemsChart;
269:   TheChart.SeriesList.Series[1].Active := idx in statItemsPie;
561:   TheChart.SeriesList.Series[1].Marks.Visible := ActionOptionsLabels.Checked;
to

Code: Select all

268:   TheChart.Series[0].Active := idx in statItemsChart;
269:   TheChart.Series[1].Active := idx in statItemsPie;
561:   TheChart.Series[1].Marks.Visible := ActionOptionsLabels.Checked;
This should probably solve the problem for newer TeeChart components.

Re: AMC on Delphi 2007

Posted: 2008-12-21 22:15:03
by antp
pinterpeti wrote:because many of them is incompatible with this Delphi version (don't even install)
For most of them just making a new dpk similar to the one made for Delphi 7 should work. Maybe also adding constants in the .inc files to detect that it is "delphi 7 and up"