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 #27116 is a reply to message #27106] Sat, 26 June 2010 08:38 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
kohait00 wrote on Fri, 25 June 2010 09:34

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);
}





This one is in Reset... In fact, EditField was working properly, the only problem was redundant code in Paint.

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();



Ops Smile

Mirek

[Updated on: Sat, 26 June 2010 08:39]

Report message to a moderator

 
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 10:12:00 CEST 2024

Total time taken to generate the page: 0.01553 seconds