Recent

Author Topic: TeeChart Pro beta for Lazarus 1.0.10 LCL  (Read 12867 times)

teechart

  • Newbie
  • Posts: 6
    • http://www.teechart.com
TeeChart Pro beta for Lazarus 1.0.10 LCL
« on: August 03, 2013, 03:21:44 pm »
Full sources included.

http://www.teechart.net/files/beta/teechart/vcl/TeeChart_VCL_FMX_Beta_2013.htm

This beta version compiles fine with Lazarus 1.0.10 (teechart.lpk package, in "Delphi" mode), and can be  also installed in the ide for design-time support. (Uninstalling TAChart package to avoid class name conflicts).

Some important bugs are present, specially at the design-time/runtime editor dialogs, that I hope to fix soon but I'm stuck on some issues that work fine with VCL.

regards !
david berneda




BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #1 on: August 03, 2013, 04:34:19 pm »
Thanks - good to see more support for Lazarus!
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

wp

  • Hero Member
  • *****
  • Posts: 13511
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #2 on: August 05, 2013, 11:46:06 pm »
Thanks for making this package available. What's the license for using?

Initially, I failed to install teechart.lpk into Laz 1.0.10 / fpc 2.6.2 and into Laz-trunk / fpc 2.6.2, both Win32. The compiler complains in function NumberOfProcessors, unit TeeClustering, about PAfficinity being a QWORD, but expecting a LongWord. After changing this, the package compiles and runs fine.

Code: [Select]
function NumberOfProcessors:Integer;
{$IFDEF MSWINDOWS}
var t : Integer;
    PAffinity,
//    SAffinity: {$IFDEF D16}NativeUInt{$ELSE}{$IFDEF LCL}QWORD{$ELSE}DWORD{$ENDIF}{$ENDIF};
    SAffinity: {$IFDEF D16}NativeUInt{$ELSE}{$IFDEF LCL}LongWord{$ELSE}DWORD{$ENDIF}{$ENDIF};
    {$IFNDEF D16}
:'(

teechart

  • Newbie
  • Posts: 6
    • http://www.teechart.com
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #3 on: August 06, 2013, 03:17:17 pm »
Thanks for the fix !

I've added an ifdef to make it compatible with both 64 and 32 bits:

{$IFDEF CPU64}QWORD{$ELSE}LongWord{$ENDIF}

I'll add a "License.txt" file in next coming beta builds, with a similar text than:

http://steema.com/licensing/vcl

People contributing as beta-testers will get free licenses for the final release version.
(email me at david@steema.com if you wish access to the beta forums at our web site)

regards !
david

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12845
  • FPC developer.
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #4 on: August 07, 2013, 12:04:49 am »
Thanks for the fix !

I've added an ifdef to make it compatible with both 64 and 32 bits:

{$IFDEF CPU64}QWORD{$ELSE}LongWord{$ENDIF}

If under IFDEF, simply write PTRUINT. More recent FPC versions (iirc 2.4.2+) also add the Delphi NativeUint alias to the native ptruint though.


 

wp

  • Hero Member
  • *****
  • Posts: 13511
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #5 on: August 07, 2013, 09:15:32 am »
Quote
Uninstalling TAChart package to avoid class name conflicts
To the architects of Lazarus and FPC: Why is this necessary? In my opinion, the IDE has all information to distinguish between the TChart from the teechart and the TChart from the TAChart package.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12845
  • FPC developer.
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #6 on: August 07, 2013, 10:47:43 am »
Quote
Uninstalling TAChart package to avoid class name conflicts
To the architects of Lazarus and FPC: Why is this necessary? In my opinion, the IDE has all information to distinguish between the TChart from the teechart and the TChart from the TAChart package.

Afaik only one can be registered for streaming.

wp

  • Hero Member
  • *****
  • Posts: 13511
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #7 on: August 07, 2013, 01:43:40 pm »
Is there a fundamental reason for that? Would it be possible to use a fully qualified name, like, e.g., chart.TChart.pas (for TeeChart) and tagraph.TChart (for TAChart)?

teechart

  • Newbie
  • Posts: 6
    • http://www.teechart.com
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #8 on: August 07, 2013, 02:12:55 pm »
The problem are lfm forms. If there is a "TChart" component inside an lfm, the IDE cannot guess which one is it (if both were installed at the component palette at the same time).

It could do the guess by parsing the pas "uses" clause before loading the form, though.


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12845
  • FPC developer.
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #9 on: August 07, 2013, 02:54:35 pm »
Is there a fundamental reason for that?

Delphi compatibility. Moreover, only since D2010 you can get the unit a class is in afaik. Before that there was only .ClassName()

Quote
Would it be possible to use a fully qualified name, like, e.g., chart.TChart.pas (for TeeChart) and tagraph.TChart (for TAChart)?

Not short term, and it would be incompatible.

teechart

  • Newbie
  • Posts: 6
    • http://www.teechart.com
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #10 on: September 03, 2013, 12:31:02 am »
New update uploaded, compatible with 1.0.12
 Still some errors at editor dialogs, some have been fixed
Runtime functionality is quite good.

regards

david

Red-Flash

  • Newbie
  • Posts: 1
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #11 on: July 16, 2014, 08:48:01 am »
Can anybody tell me, wehre I can download the

http://www.teechart.net/files/beta/teechart/vcl/TeeChart_VCL_FMX_Beta_2013.htm

I don't find any link

wp

  • Hero Member
  • *****
  • Posts: 13511
Re: TeeChart Pro beta for Lazarus 1.0.10 LCL
« Reply #12 on: July 16, 2014, 09:00:15 am »
Your link says that the beta test has finished; therefore I suppose that the component is only available to registered users again.

 

TinyPortal © 2005-2018