}
SetSize(maxWidth, maxHeight);
+ InvalidateBestSize();
return TRUE;
}
wxToolBarTool* tool = (wxToolBarTool*) node->GetData() ;
if ( tool->IsButton() )
{
- if( tool->GetControlHandle() == control )
+ if( (WXWidget) tool->GetControlHandle() == control )
{
if ( tool->CanBeToggled() )
{
{
// nothing special to do here - we relayout in Realize() later
tool->Attach(this);
+ InvalidateBestSize();
return TRUE;
}
tool2->SetPosition( pt ) ;
}
+ InvalidateBestSize();
return TRUE ;
}
wxTheApp->s_lastMouseDown = 0 ;
if ( control && controlpart != kControlNoPart ) // otherwise we will get the event twice
{
- MacHandleControlClick( control , controlpart , false /* not down anymore */ ) ;
+ MacHandleControlClick( (WXWidget) control , controlpart , false /* not down anymore */ ) ;
}
}
}