Problems with Delphi2005; TeeChart V7.06

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
DMT
Newbie
Newbie
Posts: 1
Joined: Tue Feb 28, 2006 12:00 am

Problems with Delphi2005; TeeChart V7.06

Post by DMT » 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

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;

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 10, 2006 10:33 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply