Make IsCheckable true by default and switch to explicitly disallowing it
Also add a new accessor to wxAuiToolBarItem to make it easier to determine when a tool can be checked.
This commit is contained in:
@@ -738,7 +738,9 @@ void wxToolBarBase::UpdateWindowUI(long flags)
|
||||
|
||||
wxUpdateUIEvent event(toolid);
|
||||
event.SetEventObject(this);
|
||||
event.SetIsCheckable(tool->CanBeToggled());
|
||||
|
||||
if ( !tool->CanBeToggled() )
|
||||
event.DisallowCheck();
|
||||
|
||||
if ( evtHandler->ProcessEvent(event) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user