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 » 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 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
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));

}


[Updated on: Wed, 10 October 2007 20:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: ButtonOption has no disabled state? [solved w/ ::Disable()]
Next Topic: Having my HWND and eating it, too...
Goto Forum:
  


Current Time: Mon Jun 10 08:47:08 CEST 2024

Total time taken to generate the page: 0.01228 seconds