Page 1 of 1

RMChart tooltips work with xHarbour alone, but not xHb + FWH

Posted: Mon Apr 14, 2008 6:26 pm
by Roger Seiler
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

Posted: Mon Apr 14, 2008 9:24 pm
by Antonio Linares
Roger,

Are you using an ActiveX to manage that control ?

Posted: Tue Apr 15, 2008 1:22 am
by richard-service
Hi Roger,

I use RMChart ActiveX into my App.
Tooltip work fine when mouse touch any Bar or Pie and show data.

Regards,

Richard

Posted: Tue Apr 15, 2008 11:02 am
by Roger Seiler
Antonio,

No, I'm not using ActiveX for anything.

- Roger

Posted: Tue Apr 15, 2008 11:49 am
by Antonio Linares
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

Posted: Tue Apr 15, 2008 11:54 am
by Roger Seiler
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

Posted: Tue Apr 15, 2008 12:08 pm
by Antonio Linares
Roger,

Download the EXE that I have posted and check it. Tooltips are working.

Image

Posted: Tue Apr 15, 2008 12:28 pm
by Antonio Linares
Image

Posted: Tue Apr 15, 2008 12:45 pm
by Roger Seiler
Antonio,

I'm sure my code can always be improved!

Did you see anything there that specifically was causing the tooltips problem with FWH but not in the non-FWH version so that I can fix it?

I looked for your posting of the exe but couldn't find it.

Thanks for looking at this.

- Roger

Posted: Tue Apr 15, 2008 12:49 pm
by Antonio Linares
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.

Posted: Tue Apr 15, 2008 2:01 pm
by Roger Seiler
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

Posted: Tue Apr 15, 2008 6:32 pm
by Antonio Linares
Roger,

Please review fwh\samples\graph.prg working sample.

See the graphics quality of it:
Image

Posted: Wed Apr 16, 2008 8:56 pm
by Roger Seiler
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

Posted: Fri Apr 18, 2008 12:14 am
by Roger Seiler
Here is a small comparison of graph styles, TGraph versus RMChart...

Image

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