RMChart tooltips work with xHarbour alone, but not xHb + FWH
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Antonio,
When you get a chance, please take a look at the self-contained test package from the URL below. It contains an RMChart bar graph in two versions.
RmcToolT.prg displays the graph on a window created without FWH just using the MS function CreateWindowEX(), and in this version the RMChart tooltips work. If you pause the mouse over a graph bar, a tooltip shows the bar's data.
But if the identical graph function is put inside the FWH program, RmcFwhT1.prg then the tooltips don't work. Other mouse actions used in other Rmchart functions don't work either in FWH, perhaps related to whatever is preventing tooltips to work.
Maybe you can see a solution so we can get this free library with over 160 graphic functions working properly for FWH developers.
Here's the URL for the test package...
http://www.leadersoft.com/software/rmcfwht1.zip
Thanks in advance for taking a look.
- Roger
When you get a chance, please take a look at the self-contained test package from the URL below. It contains an RMChart bar graph in two versions.
RmcToolT.prg displays the graph on a window created without FWH just using the MS function CreateWindowEX(), and in this version the RMChart tooltips work. If you pause the mouse over a graph bar, a tooltip shows the bar's data.
But if the identical graph function is put inside the FWH program, RmcFwhT1.prg then the tooltips don't work. Other mouse actions used in other Rmchart functions don't work either in FWH, perhaps related to whatever is preventing tooltips to work.
Maybe you can see a solution so we can get this free library with over 160 graphic functions working properly for FWH developers.
Here's the URL for the test package...
http://www.leadersoft.com/software/rmcfwht1.zip
Thanks in advance for taking a look.
- Roger
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- richard-service
- Posts: 583
- Joined: Tue Oct 16, 2007 8:57 am
- Location: New Taipei City, Taiwan
- Contact:
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Roger,
You need to clean your code and properly organize it. Its quite messy.
Here you have the tooltips working:
http://www.hotshare.net/file/49309-7777820948.html
You need to clean your code and properly organize it. Its quite messy.
Here you have the tooltips working:
http://www.hotshare.net/file/49309-7777820948.html
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Antonio,
To further clarify, I am only using the RMChart.dll in the test application. This is a very simple app (RmcFwhT1.prg) that just loads the Rmchart DLL, creates a main window, a child window, a menu to call one Rmchart function, and also contains the DLLxHb function calls that utilize DLLxHb.ch to access the DLL via the xHb function DLLCALL().
So ActiveX should not be involved at all.
This FWH test app is virtually identical to the RmcToolT.prg test app, which does not use FWH. Instead it utilizes the Microsoft function CreateWindowEX() to create a window to serve as the framework for the test app. Yet in this version of the test app, also utilizing RMChart.dll, the tooltips work okay.
Again, the tests - including a fully explanatory readme.txt - can be downloaded from:
http://www.leadersoft.com/software/rmcfwht1.zip
- Roger
To further clarify, I am only using the RMChart.dll in the test application. This is a very simple app (RmcFwhT1.prg) that just loads the Rmchart DLL, creates a main window, a child window, a menu to call one Rmchart function, and also contains the DLLxHb function calls that utilize DLLxHb.ch to access the DLL via the xHb function DLLCALL().
So ActiveX should not be involved at all.
This FWH test app is virtually identical to the RmcToolT.prg test app, which does not use FWH. Instead it utilizes the Microsoft function CreateWindowEX() to create a window to serve as the framework for the test app. Yet in this version of the test app, also utilizing RMChart.dll, the tooltips work okay.
Again, the tests - including a fully explanatory readme.txt - can be downloaded from:
http://www.leadersoft.com/software/rmcfwht1.zip
- Roger
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Last edited by Antonio Linares on Tue Apr 15, 2008 12:47 pm, edited 1 time in total.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Roger,
My modified EXE and PRG are here:
http://www.hotshare.net/file/49309-7777820948.html
You were creating a child window on top of the chart so the mouse events were not properly routed to the chart control
Personally I would recomend Alfredo Arteaga's Class TGraph included in FWH as you have full source code for it and can modify it as you want / need.
My modified EXE and PRG are here:
http://www.hotshare.net/file/49309-7777820948.html
You were creating a child window on top of the chart so the mouse events were not properly routed to the chart control
Personally I would recomend Alfredo Arteaga's Class TGraph included in FWH as you have full source code for it and can modify it as you want / need.
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Aha! Now I see the problem. I got confused about how to use the child window for this, which is apparently needed by RMChart for its magnification and scrolling functions. Thanks for pointing out that coding error to me.
I will take another look at TGraph. However, when I've looked at it before, it didn't seem to have the broad range of graphic functionality available as in RMChart nor the visual elegance. But certainly it is preferable to have all the code self-contained in the app instead of having to rely on a 3rd party DLL, and that is definitely an advantage of TGraph. So I'll see if I can get the same "look" with TGraph as with RMChart.
Thanks again for your QUICK help, Antonio!
- Roger
I will take another look at TGraph. However, when I've looked at it before, it didn't seem to have the broad range of graphic functionality available as in RMChart nor the visual elegance. But certainly it is preferable to have all the code self-contained in the app instead of having to rely on a 3rd party DLL, and that is definitely an advantage of TGraph. So I'll see if I can get the same "look" with TGraph as with RMChart.
Thanks again for your QUICK help, Antonio!
- Roger
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Antonio,
Thanks for the suggestion. I have compiled graph.prg and also looked closely at TGraph. I think both tools - TGraph and RMChart - have their uses, and each developer will just have to choose which is best for a particular situation.
Many thanks again for your help in getting the RMChart tooltips to work.
- Roger
Thanks for the suggestion. I have compiled graph.prg and also looked closely at TGraph. I think both tools - TGraph and RMChart - have their uses, and each developer will just have to choose which is best for a particular situation.
Many thanks again for your help in getting the RMChart tooltips to work.
- Roger
- Roger Seiler
- Posts: 223
- Joined: Thu Dec 01, 2005 3:34 pm
- Location: Nyack, New York, USA
- Contact:
Here is a small comparison of graph styles, TGraph versus RMChart...
Note the subtle 3D shading in RMChart, and its tooltips. Plus, RMChart has available many times more types and styles of charts than are currently available in TGraph. It seems that customers are likely to be more impressed with the quality of RMChart graphs, and they are quick and easy to develop with the RMChart IDE - all for free from RMChart.com .
- Roger
Note the subtle 3D shading in RMChart, and its tooltips. Plus, RMChart has available many times more types and styles of charts than are currently available in TGraph. It seems that customers are likely to be more impressed with the quality of RMChart graphs, and they are quick and easy to develop with the RMChart IDE - all for free from RMChart.com .
- Roger