Page 1 of 1

V8.06 - Bug series source list filling

Posted: Fri Oct 16, 2009 11:13 am
by 10548160
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

Re: V8.06 - Bug series source list filling

Posted: Fri Oct 16, 2009 3:56 pm
by narcis
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.

Re: V8.06 - Bug series source list filling

Posted: Tue Oct 20, 2009 7:23 am
by 10548160
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

Re: V8.06 - Bug series source list filling

Posted: Tue Oct 20, 2009 10:45 am
by narcis
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.