V8.06 - Bug series source list filling

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
AST
Newbie
Newbie
Posts: 6
Joined: Wed Jan 30, 2008 12:00 am

V8.06 - Bug series source list filling

Post by AST » Fri Oct 16, 2009 11:13 am

There was a Bug in the Version 8, which was described in this topic
http://www.teechart.net/support/viewtop ... eries+list

But the correction in V8.06 doesn't work with charts on frames, because of a little mistake in the
procedure AddMDISources in the unit TeeFuncEdit.pas:

Code: Select all

 procedure AddMDISources;
  var t : Integer;
  begin
     ... 
     //Charts may, also reside on frames of MDI forms
     if (Components[t] is TCustomChart)
        {$IFNDEF D4} or (Components[t] is TCustomFrame){$ENDIF} then
The Compiler Directive should be a {$IFDEF D4}.

Regards Rita

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

Re: V8.06 - Bug series source list filling

Post by Narcís » Fri Oct 16, 2009 3:56 pm

Hi Rita,

Yes, this was TV52014303. This conditional compiler directive means that this piece of code will be used for Delphi and C++ Builder versions following Delphi 4 and BCB 4. This was necessary as otherwise we couldn't build v8.06 for D4 and BCB4. Besides v8 not compiling for D4 and BCB 4 this probably would mean that TV52014303 wouldn't be fixed for Delphi 5/ BCB 5 and above. Which IDE 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

AST
Newbie
Newbie
Posts: 6
Joined: Wed Jan 30, 2008 12:00 am

Re: V8.06 - Bug series source list filling

Post by AST » Tue Oct 20, 2009 7:23 am

Hi,

we are using D2009 and our Charts are on frames.
And the condition
{$IFNDEF D4} or (Components[t] is TCustomFrame){$ENDIF}
doesn't work, because D4 is defined in D2009.
I think, the conditional compiler directive means that this piece of code will be used for Delphi and C++ Builder versions up to Delphi 4 and BCB 4.

Regards Rita

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

Re: V8.06 - Bug series source list filling

Post by Narcís » Tue Oct 20, 2009 10:45 am

Hi Rita,

Thanks for the info. I have the feeling I may be missing something here. Anyway, since {$IFDEF D4} can not be used as otherwise sources don't compile for Delphi and BCB 4 and given that using existing {$IFNDEF D4} doesn't work in D2009 and that this code needs to be excluded from D4 and BCB 4, I have found that using {$IFDEF D5} instead of {$IFNDEF D4} works for both cases. Can you please check if it works fine at your end?

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

Post Reply