AMC on Delphi 2007

If you need help on how to use the program
Post Reply
pinterpeti
Posts: 7
Joined: 2005-10-28 20:36:53

AMC on Delphi 2007

Post 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?
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post 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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: AMC on Delphi 2007

Post 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"
Post Reply