wxToolBarToolBase::~wxToolBarToolBase()
{
+#if wxUSE_MENUS
delete m_dropdownMenu;
+#endif
+
if ( IsControl() )
GetControl()->Destroy();
}
}
+#if wxUSE_MENUS
void wxToolBarToolBase::SetDropdownMenu(wxMenu* menu)
{
delete m_dropdownMenu;
m_dropdownMenu = menu;
}
+#endif
// ----------------------------------------------------------------------------
if ( m_tools.empty() )
return false;
- // make sure tool size is larger enough for all all bitmaps to fit in
- // (this is consistent with what other ports do):
+ // make sure tool size is large enough for all bitmaps to fit in
AdjustToolBitmapSize();
return true;
}
}
+#if wxUSE_MENUS
bool wxToolBarBase::SetDropdownMenu(int toolid, wxMenu* menu)
{
wxToolBarToolBase * const tool = FindById(toolid);
return true;
}
+#endif
#if WXWIN_COMPATIBILITY_2_8