Is this a bug? I need a quick fix please!!!

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Is this a bug? I need a quick fix please!!!

Post by johnnix » Wed Apr 21, 2010 7:07 am

Hello,

I just upgraded from 8.06 to 8.07 and noticed that plots with Grid Lines set to Small Dots and an Anti-alias tool makes the grid appear as solid line. You may check this if you just drop a TChart on a form, set left axis grid to small dots and finally add anti-alias in the tools section.

I have not received any errors regarding TChar installation after the upgrade (using Turbo Delphi Pro and WinXP)

Regards

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Is this a bug? I need a quick fix please!!!

Post by Yeray » Wed Apr 21, 2010 3:20 pm

Hi johnnix,

I could reproduce it so I've added it to the defect list to be fixed in future releases (TV52014825).
Note that, as you've seen this works fine in v8.06 and also in v2010.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Is this a bug? I need a quick fix please!!!

Post by johnnix » Thu Apr 22, 2010 4:58 am

Hello,

Thank you very much for your prompt reply. So, are you suggesting to roll back to 8.06? Is there any way to get a "hint" where to look for this error? It is too soon for me to upgrade to version 2010 :)

Regards

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Is this a bug? I need a quick fix please!!!

Post by Yeray » Thu Apr 22, 2010 11:32 am

Hi johnnix,

With GDI+, the problem doesn't appear:

Code: Select all

uses series, TeeGDIPlus;

procedure TForm1.FormCreate(Sender: TObject);
var g: TGDIPlusCanvas;
begin
  Chart1.AddSeries(TLineSeries.Create(self));
  Chart1[0].FillSampleValues();

  Chart1.Axes.Left.Grid.SmallDots:=true;

  g:=TGDIPlusCanvas.Create;
  Chart1.Canvas:=g;
  g.AntiAlias:=true;
  g.AntiAliasText:=true;
end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

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

Re: Is this a bug? I need a quick fix please!!!

Post by Narcís » Tue May 11, 2010 1:58 pm

Hi johnnix,

We have been investigating the issue further and found that it also happens with v2010. The problem seems to be only present in older Delphi versions, up to Delphi 2006. Which Delphi version are you using?

Thanks in advance.
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

johnnix
Advanced
Posts: 192
Joined: Tue Jul 10, 2007 12:00 am

Re: Is this a bug? I need a quick fix please!!!

Post by johnnix » Wed May 12, 2010 5:10 am

Hello Narcis,

I am using Turbo Delphi Pro :? Does this mean that there is no way to fix it?

Regards

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

Re: Is this a bug? I need a quick fix please!!!

Post by Narcís » Wed May 12, 2010 7:17 am

Hi johnnix,

Thanks for the info. I'm not sure, further investigation is needed. This is just to confirm what we found.
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

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Is this a bug? I need a quick fix please!!!

Post by Yeray » Wed Jun 09, 2010 8:36 am

Hi johnnix,

As said here, I'll try to explain the status of this problem (TV52014825).
We've made some tests more that show more (yes, even more) strange results, but we aren't sure about the cause of them.

As said before, we've found that this only occurs with older Delphi versions up to Delphi 2006. With Delphi 2007 and above works fine, so it could be a bug in old Delphis.
In addition to this, the problem seems to be in the combination of TAntiAliasCanvas (used in TAntialiasTool) with some perspective of the grid lines. We observed that rotating the chart the grid lines change from smalldots to solid lines and vice-versa:
smalldots.png
smalldots.png (322.84 KiB) Viewed 9933 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply