// Licence: The wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "toolbar.h"
-#endif
-
#include "wx/wx.h"
#if wxUSE_TOOLBAR
#include "wx/tabctrl.h"
#include "wx/bitmap.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl)
BEGIN_EVENT_TABLE(wxToolBar, wxToolBarBase)
EVT_MOUSE_EVENTS( wxToolBar::OnMouse )
EVT_PAINT( wxToolBar::OnPaint )
END_EVENT_TABLE()
-#endif
#include "wx/mac/uma.h"
#include "wx/geometry.h"
}
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 */ ) ;
}
}
}