FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Want to create a dash board with dials on it.
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Want to create a dash board with dials on it.
Posted: Mon Jan 11, 2010 09:30 PM

I want to put in my app a screen with dials that will be 180 degree aand a pointer that will move base on the value of some variables.

Anybody with experience doing this. need some code and whatever info can be supplied.

Thank you

Harvey
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Want to create a dash board with dials on it.
Posted: Mon Jan 11, 2010 10:19 PM
Harvey,

The only native FW meter control I am aware of is the progress meter. I did a Google search and here is a round analog style ActiveX meter control. It costs just over $100.

http://www.cstsoft.com/english/list2.htm#meter

You would have to write an interface--best would be a FW class wrapper.

I'm sure if you search you will find others.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Want to create a dash board with dials on it.
Posted: Tue Jan 12, 2010 01:31 AM
Now to show my ignorance...what is an
FW class wrapper.
Thank you

Harvey
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Want to create a dash board with dials on it.
Posted: Tue Jan 12, 2010 02:36 AM

Harvey,

A class wrapper is just a class that encapsulates the ActiveX code so it appears just like a regular FW class. Then you can add an include file to give it xBase syntax so then you could do something like:

@ 10,10 meter oMeter range 0,100...

Then:

oMeter:set(45)

Etc.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Want to create a dash board with dials on it.
Posted: Tue Jan 12, 2010 12:39 PM
Hello,

maybe this can be a help

http://www.terra.es/personal/ravendano/

regards

Marcelo
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Want to create a dash board with dials on it.
Posted: Tue Jan 12, 2010 12:48 PM

Someone made a Piemeter class many years ago......

Best Regards, Saludos



Falconi Silvio
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Want to create a dash board with dials on it.
Posted: Tue Jan 12, 2010 03:37 PM

Thanks Marcelo for the link. downloaded some things that look interesting...but no hablo espanol.

Uwe
The piemeter may be worth looking at. How wourld I get a copy?

Thank you

Harvey
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Want to create a dash board with dials on it.
Posted: Thu Jan 14, 2010 11:45 PM
Harvey,

I found a link to :



http://www.devexpress.com/Products/NET/ ... /index.xml

maybe something, can be used with FWH ?

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Want to create a dash board with dials on it.
Posted: Thu Jan 14, 2010 11:50 PM

Uwe:

I check it out and let you know how it workd with FWH

Thank you

Harvey
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Want to create a dash board with dials on it.
Posted: Fri Jan 15, 2010 12:09 AM

No, dot NET products cannot be used with FW. You have to have ActiveX products.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Want to create a dash board with dials on it.
Posted: Fri Jan 15, 2010 12:22 AM

saved me wasting time...Thanks James.

Thank you

Harvey
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Re: Want to create a dash board with dials on it.
Posted: Fri Jan 15, 2010 08:56 AM
As far I know the only native solution is use tSelector from Ramon Avedaño.


Code (fw): Select all Collapse
REDEFINE SELECTOR oSelec1 VAR oDbf:Pixel OF oDlg ID 101 ;
            ORIGIN ANGLE 270 ;     // Degrees
            LAST ANGLE 90    ;   
            RANGE 100, 1     ;
            MARKS 10         ;
            COLORS CLR_CYAN  ;
            ON CHANGE oGetPixel:Refresh()


If not exactly what you wantt, I thing is a good starting point.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: Want to create a dash board with dials on it.
Posted: Sat Jan 16, 2010 08:03 PM

Biel thanks for the suggestion. Havn't had a chance to try it but I'll keep you posted on how it works.

Thank you

Harvey
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Want to create a dash board with dials on it.
Posted: Sat Jan 16, 2010 08:21 PM

Do you trying with

oMeter := TPieMeter():New( nTotal, cSay, oWnd, @lEnd )

CLASS TPieMeter
....

Best Regards, Saludos



Falconi Silvio
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Want to create a dash board with dials on it.
Posted: Sun Jan 17, 2010 01:20 AM
Hello Harvey,

I still found another Distributor for AktiveX-Controls ( OCX )
compatible with VisualBasic, Delphi and C, C++

Some exsamples of the Bundle :














Maybe it is something You can need.
It is a bit expensive and I don't know, if You want to pay much money.

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion