Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Possible issue in Controls4U::Meter
Possible issue in Controls4U::Meter [message #32132] Tue, 26 April 2011 15:11 Go to previous message
jerson is currently offline  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
 
Read Message
Read Message
Previous Topic: FEAT: Tcl as a plugin
Next Topic: Assist for include files
Goto Forum:
  


Current Time: Thu May 16 04:01:39 CEST 2024

Total time taken to generate the page: 0.01299 seconds