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 » U++ Library support » Look and Chameleon Technology » FIX: proper use of Style in Ctrls from CtrlLib
Re: FIX: proper use of Style in Ctrls from CtrlLib [message #27106 is a reply to message #27103] Fri, 25 June 2010 15:34 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hey mirek,

something went wrong i thing, in the last cmmit 2508
i even missed it myself...
EditField::EditField()
{
	dropcaret = Rect(0, 0, 0, 0);
	style = &StyleDefault(); // <---
	Unicode();
	Reset();
	WhenBar = THISBACK(StdBar);
}


and:
void EditField::Paint(Draw& w)
{
	Size sz = GetSize();
	const EditField::Style& st = StyleDefault(); //<--- this one prevents overriding style completely, should be '*style;'
	bool enabled = IsShowEnabled();



and:
what about ButtonOption Smile
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Manual for custom Chameleonized Ctrls
Next Topic: Easiest way to change button color
Goto Forum:
  


Current Time: Thu May 09 05:41:36 CEST 2024

Total time taken to generate the page: 0.02793 seconds