FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Mon Apr 14, 2008 06:26 PM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Mon Apr 14, 2008 09:24 PM

Roger,

Are you using an ActiveX to manage that control ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 01:22 AM

Hi Roger,

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

Regards,

Richard

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 11:02 AM

Antonio,

No, I'm not using ActiveX for anything.

  • Roger
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 11:49 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 11:54 AM
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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 12:08 PM
Roger,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 12:28 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 12:45 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 12:49 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 02:01 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Tue Apr 15, 2008 06:32 PM
Roger,

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

See the graphics quality of it:
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Wed Apr 16, 2008 08:56 PM

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
Posts: 223
Joined: Thu Dec 01, 2005 03:34 PM
RMChart tooltips work with xHarbour alone, but not xHb + FWH
Posted: Fri Apr 18, 2008 12:14 AM
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

Continue the discussion