Problems with Delphi2005; TeeChart V7.06
Posted: Fri Mar 10, 2006 10:05 am
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
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;