Home » Developing U++ » U++ Developers corner » Possible issue in Controls4U::Meter
Possible issue in Controls4U::Meter [message #32132] |
Tue, 26 April 2011 15:11  |
jerson
Messages: 202 Registered: June 2010 Location: Bombay, India
|
Experienced Member |

|
|
In controls4u.cpp, line 986, I had to do this to get the meter to display correctly.
// this line changed by Jerson. Compensate for Min/Max of meter while showing the hand
// double vala = value*maxgrad/(max-min);
double vala = (value-min)*maxgrad/(max-min);
PaintHand(w, cx, cy, R, a + vala*direction, bigF, colorType);
Values I use are Min=-100, Max=100, SetData=0
Without the correction, the meter would indicate -100 for value=0. After correction, it is Ok.
Can someone check this please. I'm using rel 3218 on Windows
Regards
|
|
|
|
Goto Forum:
Current Time: Sun Apr 27 01:36:06 CEST 2025
Total time taken to generate the page: 0.01007 seconds
|