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 » Community » Newbie corner » EditDouble background color
Re: EditDouble background color [message #35557 is a reply to message #35520] Wed, 29 February 2012 10:14 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
In the end the background color for Edifields works...
The real problem now is that i cant disable the field or layout comes back to default Sad

here my code:

//scala.h
class Scala : public WithScalaLayout<TopWindow> {
....
public:
EditDouble::Style s;
EditDouble verifica1;
 
	typedef Scala CLASSNAME;
	virtual void Paint (Draw& draw);
	Scala();
};

//main.cpp
void Scala::color(void)
{
	s = verifica1.StyleDefault();
	if(verifica1 < 62 || verifica1 > 64)
		{
			s.paper = LtRed;
 			s.text = Yellow;
		}
	else
		{
			s.paper = LtGreen;
			s.text = Black;
		}
	verifica1.SetStyle(s);
}


I tryed setting s.disabled but nothing happen...
Where I'm wrong now ?!

Thanks,
Matteo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I callback on staticimage click
Next Topic: Ctrl::Quit() and system shutdown
Goto Forum:
  


Current Time: Sun Aug 24 11:33:26 CEST 2025

Total time taken to generate the page: 0.04316 seconds