U++ framework
Do not panic. Ask here before giving up.

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: Sat May 30 00:32:53 GMT+2 2026

Total time taken to generate the page: 0.00679 seconds