View Full Version : RMChart
Hello,
I would like to known how I can use the last version of the RMChart dll (4.12) with ThinBasic.
Thank's for your help
ErosOlmi
03-06-2008, 12:00
Hi fefe.
Currently we distribute RMChart version 3.1.1.0 that is a quite old version but with a lot of features for what we needed so far. I have authorization from Rainer Morgen (RMChart author) to ditribute and use this version.
I need to contact again Rainer Morgen and ask if I can move to version 4.12 that is current latest one.
I will let you know.
Eros
ErosOlmi
03-06-2008, 12:30
Forget to tell you that of course you can get latest RMChart from official web site and use it inside thinBasic as far as declared functions didn't change their syntax. If some function change its syntax, you have to change them manually in thinBasic include file. But I think most (if not all) are the same but I didn't check.
In any case I'm contacting Rainer Morgen asking authorization. If I will get it, I will check new declare file.
Ciao
Eros
Hi Eros,
Thank's for your answer. I known that there are some new functions in RMChart like RMC_Zoom, which are very useful.
very good day
Fefe
ErosOlmi
03-06-2008, 14:22
I've already sent a mail to Rainer but I've got back an automail that say he is on vacation and wait till he will be back.
In the meantime I will download latest RMChart and start checking function definition. Should be quite easy to port because thinBasic function declare is very close to Power Basic one.
Thanks for the info about zooming. Seems very interesting.
Eros
ErosOlmi
04-06-2008, 12:08
fefe,
I didn't get any reply so far but made some test with RMChart version 4.1.2
All seems working fine just copying new included file and new DLL. So if you need to go manually do the following:
download RMChart 412 from RMChart web site at http://www.rmchart.com/rmc/Downloads.htm getting rmchart_dll.zip file. From that file do the following:
extract RMChart.DLL and replace the one released with thinBasic installation in \thinBasic\Bin\ directory
extract \POWERBASIC\rmchart.inc include file and replace the one released with thinBAsic installation in \thinBasic\Inc\ directory
You should have now RMChart 412 working with thinBasic example.
Hope this can help in the meantime I get back info from Rainer.
Ciao
Eros
ErosOlmi
04-06-2008, 12:51
I just tested new Zooming functions: very impressive for data analysis.
If I will get authorization, I will prepare some specific scripts only for chart zooming.
Hi Eros,
I have made the changes. It's works fine with a modified RMChartDemo example (just add RMC_Zoom %ID_RMC1,2 before
RMC_Draw %ID_RMC1 ).
But if I put the same line in my code, I get an error code 18, Unknown Keyword in line RMC_ZOOM(%ID_RMC1,2), token found : RMC_ZOOM
I don't find the mistake. Without the line, the script runs well.
Thank's for your answer
ErosOlmi
04-06-2008, 14:46
fefe,
I just did exactly what you did and here all is working fine. I can zoom chart in/out with mouse.
Please be sure you have copied latest RMChart.dll and you do not have other versions around.
To check if you are using latest DLL, add the following line into your script at the beginning, before the #INCLUDE ... directive:
#DEFAULT DECLARE CheckMissing %TRUE
in this way:
'---------------------------------------------------------------------------------
'---Include needed files
'---------------------------------------------------------------------------------
#DEFAULT DECLARE CheckMissing %TRUE
#include "%APP_INCLUDEPATH%\RMChart.inc"
This line tells thinBasic to check inside the DLL and report if the declared function is present or not.
If RMC_Zoom is missing, it means thinBasic is loading a different RMChart.dll version.
Let me know.
Eros
Hi Eros,
I found the problem. I had an old rmchart.dll in the same folder than my script.
I should perhaps give the complete file path rather than "%APP_INCLUDEPATH%\RMChart.inc" in the script ?
Thank's for all
Very good day
ErosOlmi
04-06-2008, 15:36
I should perhaps give the complete file path rather than "%APP_INCLUDEPATH%\RMChart.inc" in the script ?
No, it is OK. Full path are always a problem.
%APP_INCLUDEPATH% is a placeholder for the default thinBasic include directory. It will always be extanded to the directory where thinBasic is installed.
Also just a simple
#INCLUDE "RMChart.inc"
should work because in this case thinBasic engine will first search for "RMChart.inc" in current script directory, than in default thinBasic include directory, usually \thinBasic\Inc\
In any case here the problem was not related to #INCLUDE directive but where the DECLARE statement search for the needed DLL.
Usually local script path comes first. List of sequence where DECLARE try to load the needed DLL is listed in DECLARE help (http://www.thinbasic.com/public/products/thinBasic/help/html/declare.htm)
Ciao
Eros
ErosOlmi
04-06-2008, 15:37
Forget to say,
if you create some script using RMChart and would like to share with us, I will include them into official thinBasic release.
Thanks
Eros
zlatkoAB
05-06-2008, 12:13
zdenko
ErosOlmi
05-06-2008, 12:18
zdenko?
What does it mean?
fefe,
I didn't get any reply so far but made some test with RMChart version 4.1.2
All seems working fine just copying new included file and new DLL. So if you need to go manually do the following:
download RMChart 412 from RMChart web site at http://www.rmchart.com/rmc/Downloads.htm getting rmchart_dll.zip file. From that file do the following:
extract RMChart.DLL and replace the one released with thinBasic installation in \thinBasic\Bin\ directory
extract \POWERBASIC\rmchart.inc include file and replace the one released with thinBAsic installation in \thinBasic\Inc\ directory
You should have now RMChart 412 working with thinBasic example.
Hope this can help in the meantime I get back info from Rainer.
Ciao
Eros
Comment from:
...\thinBasic\SampleScripts\RMChart\RMChartDemo.tBasic
RMChart is freeware by Rainer Morgen.
To get more info about RMChart visit: http://www.rmchart.com/
...
This URL of RMChart misleads you to "special" Url's. :-((
You can reach some snippets of rmchart.com via the Wayback Machine like :
http://web.archive.org/web/20071214212235/http://www.rmchart.com/
I hope it helps
Ben