Pen.Style after Delphi 2005 upgrade
Posted: Tue Aug 30, 2005 6:01 pm
I have an existing application that was developed in D7. After Upgrading the application to Delphi 2005 Sp3 the Charts no longer print the line style assigned to each pen, just prints solid. If I try to change Pen to LinePen I get an error [Error] main.pas(1156): E2003 Undeclared identifier: 'LinePen' Yet in the Object Inspector I see LinePen not Line. This Happens on 2 different development computers.
Code: Select all
If not colorPrinter then
begin
for i := 0 to ch[x].SeriesCount-1 do
begin
OldColor[i] := ch[x].series[i].SeriesColor;
ch[x].series[i].SeriesColor := clblack;
ch[x].Series[i].Pen.Width := 2;
case i of
0: ch[x].series[i].Pen.style := psSolid;
1: ch[x].series[i].Pen.Style := psDot;
2: ch[x].series[i].Pen.Style := psDash;
3: ch[x].series[i].Pen.Style := psDashDot;
4: ch[x].series[i].Pen.Style := psDashDotDot;
5: ch[x].series[i].Pen.Width := 1;
6: ch[x].series[i].Pen.Width := 3;
else
ch[x].series[i].Pen.Style := psSolid;
end;
end;