Page 1 of 1

Regarding TPointSeries, changing to Single from Double

Posted: Tue Sep 07, 2004 2:03 pm
by 9232649
Hello,

Is it possible to change TChartValues from double to single. It would be excellent because the memory reduction would be about 50%.

Best Regards,

Johan Ingemansson

Posted: Tue Sep 07, 2004 3:15 pm
by Marjan
Hi.

Yes, it can be done, but only if you have TeeChart source code. If you have, then all you must do is open the TeeDefs.inc file and locate the following lines:

Code: Select all

/ "Value" type for point values data.  
// Remove the "." on ONLY one of the items below:

{$DEFINE TEEVALUEDOUBLE}
{.$DEFINE TEEVALUESINGLE}
{.$DEFINE TEEVALUEEXTENDED}
and change them to

Code: Select all

{.$DEFINE TEEVALUEDOUBLE}
{$DEFINE TEEVALUESINGLE}
{.$DEFINE TEEVALUEEXTENDED}
Then recompile and reinstall all TeeChart packages.

Possible for adjustment

Posted: Wed Sep 08, 2004 6:13 am
by 9232649
So if I don´t have the source code then it´s impossible? Wouldn´t it be possible for Steema to make this adjustment, since I would benifit greatly for the reduced memory consumtion. I would be forever gratefule. If this isn´t possible I would recommend that this feature is standard in next coming versions of TeeChart.

Best Regards,

Johan Ingemansson

Posted: Wed Sep 08, 2004 8:38 am
by Pep
Hi Johan,
So if I don´t have the source code then it´s impossible?
No, that I know of. You need to sources to modify and recompilet them.
Wouldn´t it be possible for Steema to make this adjustment, since I would benifit greatly for the reduced memory consumtion. I would be forever gratefule. If this isn´t possible I would recommend that this feature is standard in next coming versions of TeeChart.
I've added this on our wish list to be considered for the next releases.

Re: Possible for adjustment

Posted: Wed Sep 08, 2004 2:34 pm
by Marjan
9232649 wrote:Wouldn´t it be possible for Steema to make this adjustmentJohan Ingemansson
A bit tricky to do because you can't do it simply by using some flag(s). You have to recompile the packages with different declaration. The only solution for non-source code customers would be that we would prepare two sets of files (single and double compile) and prepare separate installers. However, at the moment we do not plan to do this. So, the only solution for non-source code customers is to upgrade to source code and build "single" packages manually.

Posted: Wed Sep 08, 2004 6:37 pm
by 9232649
Ok, I´ll do that!

Best Regards,

Johan Ingemansson

Re: Regarding TPointSeries, changing to Single from Double

Posted: Thu Dec 22, 2016 10:46 am
by 16478246
Hello,

We want to user singles i.s.o doubles in TChartvalues.
The last post on this item is from 2004 where you have to have the source code to get this done.
Has something changed on this issue since then?

Regards,

Marcel Horsthuis

Re: Regarding TPointSeries, changing to Single from Double

Posted: Tue Dec 27, 2016 10:37 am
by 10050769
Hello Marcel,

I would like inform you that TChartValues, by default, are Doubles, therefore, if you want use these as single you still need modify the TeeChart source code in same way as we indicate above.

Thanks in advance