Page 1 of 1

Problems with Delphi2005; TeeChart V7.06

Posted: Fri Mar 10, 2006 10:05 am
by 9345484
Hello,

I want to create some lineseries dynamically and change the line width.
With Delphi 7.0 this code fragment is working. When I use the same
code in Delphi 2005 the line color changes to black but the line width
still stays at one. When I look at the LinePen.Width value at runtime
the value returns 4 as adjusted.

Do I have to make any further adjustments to activate the LinePen.Width
property ?

Kind regards

Code: Select all

procedure TLinien.CreateLinienCharts(Anzahl: Byte);
var i: integer;
    Lines: TLineSeries;
begin
 for i:=0 to Anzahl-1 do
  begin
   Lines := TLineSeries.Create(Chart);
   Lines.LinePen.Width := 4;
   Chart.AddSeries(Lines);
  end;
end;

Posted: Fri Mar 10, 2006 10:33 am
by narcis
Hi DMT,

Do you have all Delphi 2005 available updates installed? I don't remember if it was Update 1 or Update 2 that solved several TPen bugs which TChartPen inherits from.

We have tested your code here with the updates installed and behaved the same as in Delphi 7.