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 |
|
mirek
Messages: 13975 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
Mirek
[Updated on: Sat, 26 June 2010 08:39] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 26 10:41:32 CEST 2024
Total time taken to generate the page: 0.05268 seconds
|