Home » U++ Library support » Look and Chameleon Technology » Does SetStyle needs a refresh ?
Does SetStyle needs a refresh ? [message #16752] |
Wed, 09 July 2008 20:44 |
kbyte
Messages: 87 Registered: July 2008
|
Member |
|
|
Hi all,
I download today the latest version of Upp and I have to adapt my app code, basically on SetBkColor calls. Now, I thing we showld use the SetStyle. Well, In a form I want to change the bk of the edit field where the user enters text (OnChange event). I have this code:
void X::OnChangeEditBox(void) //Called from on change event
{
EditField * pEdit=dynamic_cast<EditField*> (GetLastCtrl());
edits=EditField::StyleDefault();
edits.paper=Yellow();
pEdit->SetStyle(edits);
}
Then when I try it I write text on the edit boxes but bkground only get yellow when the Edit box loose the focus and not while I write text to it.
Any help?
Thanks
Kim
[Updated on: Wed, 09 July 2008 21:43] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 20 09:00:16 CEST 2024
Total time taken to generate the page: 0.04841 seconds
|