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 next 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
Re: Possible issue in Controls4U::Meter [message #32152 is a reply to message #32132] Thu, 28 April 2011 11:31 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Jerson

Thank you for your patch Smile. It will be applied today.


Best regards
IƱaki
Previous Topic: FEAT: Tcl as a plugin
Next Topic: Assist for include files
Goto Forum:
  


Current Time: Fri Apr 19 02:17:36 CEST 2024

Total time taken to generate the page: 1.07238 seconds