TeeChart for Delphi 2010

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jel
Newbie
Newbie
Posts: 1
Joined: Mon Aug 27, 2007 12:00 am

TeeChart for Delphi 2010

Post by jel » Fri Aug 28, 2009 2:09 pm

Hi there,

I have recently purchased the latest version of Delphi (Delphi 2010 professional). Is there any information when TeeChart 8 Pro (or later version) will be available for use in Delphi 2010?

regards,

jan lutgert

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

Re: TeeChart for Delphi 2010

Post by Narcís » Fri Aug 28, 2009 2:14 pm

Hi jan,

We are currently working on it an we expect to be able to deliver a version soon. Hopefully in the next 2 weeks.
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

swesty
Newbie
Newbie
Posts: 14
Joined: Tue Feb 17, 2009 12:00 am

Re: TeeChart for Delphi 2010

Post by swesty » Tue Sep 01, 2009 4:48 am

I am also interested to hear it is close but would also like to know if we can simply copy existing Delphi version folders and implement a manual installation of say Delphi 2009 packages into Delphi 2010?
Is there any way of retro fitting the existing Delphi 2009 package for use under Delphi 2010 ? Just thought I would ask the question so development can continue on our product line as well as we have just upgraded to Delphi 2010.

Thanks.

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

Re: TeeChart for Delphi 2010

Post by Narcís » Tue Sep 01, 2009 7:40 am

Hi swesty,

If you are a sourcecode customer you could compile the packages manually using Delphi 2010 or we could even provide latest sources and TeeRecompile version so that you can do it automatically. Only having binary packages I'm afraid it won't work as they need to be compiled on each specific IDE version and they have dependencies over IDE's packages.
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

swesty
Newbie
Newbie
Posts: 14
Joined: Tue Feb 17, 2009 12:00 am

Re: TeeChart for Delphi 2010

Post by swesty » Tue Sep 01, 2009 8:04 am

Narcís,

Ok thanks for the clarification. I should have thought about that before the question. I can now see the advantage of also getting the source code as part of the license.

Cheers.

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

Re: TeeChart for Delphi 2010

Post by Narcís » Tue Sep 01, 2009 8:09 am

Hi swesty,

You're welcome.

If you are interested on upgrading your license you can contact our Sales Dept. at sales at steema dot com.
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

MagnusF
Newbie
Newbie
Posts: 3
Joined: Mon Aug 25, 2008 12:00 am
Location: Sweden

Re: TeeChart for Delphi 2010

Post by MagnusF » Tue Sep 01, 2009 7:27 pm

I have found several problems with 8.05 and Delphi2010.
But the only blocking parts are some stuff in GIFImage.pas

First of all, you need to add some definitions for the Delphi2010 compiler
GIFImage.pas @ line 406 (Add the following lines)

Code: Select all

// 2009.09.01 ->
// Delphi 2010
  {$IFDEF VER210}
  {$WARN SYMBOL_PLATFORM OFF}
  {$DEFINE VER10_PLUS}
  {$DEFINE VER11_PLUS}
  {$DEFINE VER12_PLUS}
  {$DEFINE VER125_PLUS}
  {$DEFINE VER13_PLUS}
  {$DEFINE VER14_PLUS}
  {$DEFINE VER15_PLUS}
  {$DEFINE VER20_PLUS}
  {$DEFINE VER21_PLUS}
  {$DEFINE BAD_STACK_ALIGNMENT}
{$ENDIF}
// 2009.09.01 <-
The second thing you need to pay attention to is the use of "With" statements in Delphi2010, since it has become read only for some reason.
So at line 4782, where you can see the following code with a "With" statement:

Code: Select all

      with (Pal.palPalEntry[i]) do
      begin
        peRed := i;
        peGreen := i;
        peBlue  := i;
        peFlags := PC_NOCOLLAPSE;
      end;
You should change that to:

Code: Select all

       Pal.palPalEntry[i].peRed := i;
       Pal.palPalEntry[i].peGreen := i;
       Pal.palPalEntry[i].peBlue := i;
       Pal.palPalEntry[i].peFlags := PC_NOCOLLAPSE;
There are more positions in GIFImage.pas where this occurs.

Change that and you will be able to recompile 8.05 for Delphi2010.

There are however some major problems with the installation routine.
The installer of 8.05 seems to be writing to the wrong registry key "HKCU\Software\CodeGear\BDS\8.0" this should be "HKCU\Software\CodeGear\BDS\7.0"
You can fix this by manually editing the registry (I did an export on the faulty 8.0 key, changed the REG file in notepad so 8.0 becomes 7.0, and then imported it to the registry again)
WARNING, remember to add your existing data for "Search path", "Debug DCS Path" and "Browsing Path" before importing the reg file gain, otherwise you will overwrite your existing settings!!!
I also detected that the the recompile application doesnt handle long path names, so you might want to install into "C:\TeeChart" and run the recompiler from there.

Hope this helps someone until Steema has released a version that fully supports Delphi2010.

kubatovics_ferenc
Newbie
Newbie
Posts: 2
Joined: Fri Jul 24, 2009 12:00 am

Re: TeeChart for Delphi 2010

Post by kubatovics_ferenc » Wed Sep 02, 2009 10:37 am

Hi,

Is the new version supporting Delphi 2010 going to be a maintenance version (e.g.: 8.0.6) or a new main version (9.x)?

Br,
Ferenc

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

Re: TeeChart for Delphi 2010

Post by Narcís » Wed Sep 02, 2009 10:41 am

Hi Ferenc,

It will be a v8 release.
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

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

Re: TeeChart for Delphi 2010

Post by Narcís » Thu Sep 03, 2009 9:21 am

Hello everyone,

Please notice that we have just released v8.06 which adds support for RAD Studio 2009. Version announcement can be found here:

http://www.teechart.net/support/viewtopic.php?t=10221
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

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: TeeChart for Delphi 2010

Post by TestAlways » Thu Sep 03, 2009 5:36 pm

MagnusF wrote: The second thing you need to pay attention to is the use of "With" statements in Delphi2010, since it has become read only for some reason.
I don't use the

Code: Select all

with
statement much but I couldn't believe this when I read it. So I tried a simple example:

Code: Select all

  TMyTestObj = class
  private
    FTestThis: string;
  public
    property TestThis: string read FTestThis write FTestThis;
  end;

...
procedure TForm41.FormCreate(Sender: TObject);
var
  lMO: TMyTestObj;
begin
  lMO := TMyTestObj.Create;
  try
    with lMO do
      TestThis := '123';

  finally
    lMO.Free;
  end;
end;
and this compiled just fine. I am not sure what you are seeing.

Ed Dressel

MagnusF
Newbie
Newbie
Posts: 3
Joined: Mon Aug 25, 2008 12:00 am
Location: Sweden

Re: TeeChart for Delphi 2010

Post by MagnusF » Thu Sep 03, 2009 6:18 pm

TestAlways wrote: ...and this compiled just fine. I am not sure what you are seeing.
I agree, but there are some code that compiled on Delphi2009 (and previous versions) that no longer work for Delphi2010.
For example, if you put parenthesis around your "with" statement, members will become "read-only" within that block.

The following code will compile in Delphi2009, but not in Delphi2010.

Code: Select all

type

  TMyRecord = packed record
   First : integer;
   Second : integer;
  end;

  TMyRecArray = array[0..255] of TMyRecord;

  TCompRec = record
   ID : integer;
   Arr : TMyRecArray;
  end;

implementation

procedure TForm1.Button1Click(Sender: TObject);
var AMyRec : TCompRec;
    i : integer;
begin
 for i := 0 to 255 do begin
  with (AMyRec.Arr[i]) do
  begin
   First := i;
   Second := i;
  end;
 end;
end;

Simply removing the parentheses will help, something I missed when I wrote my previous post.

Conclusion: There are some changes between Delphi2010 and Delphi2009 regarding the With statement,
but it's probably a fix for a bug that did NOT make the members read-only in some corner cases when using parentheses.

/Magnus

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: TeeChart for Delphi 2010

Post by TestAlways » Thu Sep 03, 2009 6:55 pm

For example, if you put parenthesis around your "with" statement, members will become "read-only" within that block.
just curious: why would someone put parans around the object in a with statement?

MagnusF
Newbie
Newbie
Posts: 3
Joined: Mon Aug 25, 2008 12:00 am
Location: Sweden

Re: TeeChart for Delphi 2010

Post by MagnusF » Thu Sep 03, 2009 6:58 pm

TestAlways wrote:just curious: why would someone put parans around the object in a with statement?
I have no idea, but it makes the members readonly, but the question is, why would anyone need that?

Post Reply