Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 26483, Analog gauge c++ component

by Matteo Gattanini Email: Anonymous


C++ VCL graphic control reproducing an analog meter for displaying floating point values
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 12.0  to 12.0 333 downloads
Copyright: No significant restrictions


Size: 1,063,208 bytes
Updated on Wed, 17 Dec 2008 05:54:25 GMT
Originally uploaded on Wed, 17 Dec 2008 05:54:17 GMT
SHA1 Hash: 356779479DC764E0AA6718F68AE1C2B47F828B3C
MD5 Hash: 24447059282BC44D641AA2D0E02E5D53

    Explore the files in this upload

Description
An4logGauge is a c++ VCL graphic control reproducing an analog meter for displaying floating point values.
This control is based on 'A3nalogGauge.pas' Antialiased Analog Gauge component for Delphi 2002, Irnis Haliullin (irnis@irnis.net, http://www.irnis.net)
which was based on AnalogGauge component by Shteg Vyacheslav, Supersampling algoritm of Nacho Urenda.
See more info in the header file.

Example of usage:
#include "unt_An4logGauge.h"
cls_An4logGauge* meter = new cls_An4logGauge(Panel1);
//meter->Parent = Panel1; // Not necessary
// Assign proper dimensions, ex:
meter->Width = 200; // [pix]
meter->Height = 100; // [pix]
// Or dynamic dimensions:
meter->Align = alClient;
// Setting the Layout
// For centered style call the facility:
meter->SetCenteredLayout(120); // [deg]
// For right or left style, simply call:
meter->SetRightLayout(); // or SetLeftLayout()
// More generally, set AngleMin and AngleRange:
meter->AngleMin = 45; // [deg]
meter->AngleRange = 270; // [deg]
// Other settings
meter->Caption = "A";
meter->FullScaleMin = -50.0;
meter->FullScaleMax = +50.0;
// Displaying values
meter->Value = 10.3;
// You can see value using hints:
meter->ShowHint = true;
// Something to do at mouse click
meter->OnMouseDown = MyMeterMouseDown;
/*void __fastcall MyMeterMouseDown(TObject*, TMouseButton, TShiftState, int, int);*/

For more information, see http://matteo.gattanini.googlepages.com/

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04