Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Toolbar clears after ESC key [solved, it`s the bug in user code]
| Re: Toolbar clears after ESC key [bug?] [message #12089 is a reply to message #12085] |
Wed, 10 October 2007 20:21   |
Oblivion
Messages: 1254 Registered: August 2007
|
Senior Contributor |
|
|
I've compiled your code (with small modifications, and got the same result, strange...). But i didn't have to examine the actual process that caused trouble
Fortunately, if you use OnUpdateToolbar solely for adding adding the toolbar for once and refreshing it afterwards, this should work (a temporary/application specific solution):
void MainWindow::OnUpdateToolbar(Bar &bar)
{
if(toolbar.IsOpen() && toolbar.IsChild())
{
Refresh();
return;
}
toolbar.Add(t_("*********"), DispRVPFImages::dailyReport,THISBACK(OnLockUnlock));
toolbar.GapRight();
toolbar.Add(t_("*********"), DispRVPFImages::unlock,THISBACK(OnLockUnlock));
toolbar.Separator();
toolbar.Add(t_("*********"), DispRVPFImages::report,THISBACK(OnLockUnlock));
toolbar.Add(t_("*********"), DispRVPFImages::archive,THISBACK(OnLockUnlock));
toolbar.Add(t_("*********"), DispRVPFImages::options,THISBACK(OnLockUnlock));
}
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Wed, 10 October 2007 20:31] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sun Feb 22 16:06:24 CET 2026
Total time taken to generate the page: 0.09219 seconds
|