Home » U++ Library support » Menus&Toolbars » ToolButton: Label Patch!
Re: ToolButton: Label Patch! [message #27361 is a reply to message #26955] |
Wed, 14 July 2010 15:19 |
|
luzr wrote on Sun, 13 June 2010 19:45 | OK, applied in less complex form.
Mirek
|
Mirek, When I set label text the control did not refresh.
The code need to change from:
ToolButton& ToolButton::Label(const char *text, int _kind)
{
if(kind != _kind) {
kind = _kind;
==>>REMOVE Refresh();
}
Text(text);
return *this;
}
to
ToolButton& ToolButton::Label(const char *text, int _kind)
{
if(kind != _kind) {
kind = _kind;
}
Text(text);
==>>ADD Refresh();
return *this;
}
The flat file is provided!
Thank you.
Ion Lupascu (tojocky)
|
|
|
Goto Forum:
Current Time: Thu May 16 16:41:22 CEST 2024
Total time taken to generate the page: 0.01236 seconds
|