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 » Menus&Toolbars » update state of a toolbar icon
update state of a toolbar icon [message #6215] Thu, 02 November 2006 18:34 Go to previous message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
how do i update a toolbar icon?
i have set the toolbar with code similar to this:
[...]
tb.Set(THISBACK(MySetToolbar);
[...]
void MyClass::MySetToolbar(Bar& tb) {
   tb.Add(count > 10,"some text",Img::SomeImage(),THISBACK(SomeFunction));
};


how can i redraw the toolbar, that the boolean function "count>10" is rechecked and the Button is enabled again?

tried Refresh(), SyncBar(), RefreshLayout(), RefreshParentLayout(), but nothing worked Sad

Bas
 
Read Message
Read Message
Read Message
Previous Topic: ToolBar as Ctrl not as Frame [BUG?]
Next Topic: MenuBar does not show slahses
Goto Forum:
  


Current Time: Fri Mar 29 08:12:26 CET 2024

Total time taken to generate the page: 0.01775 seconds