#endif // wxUSE_STATUSBAR
}
+wxFrameBase::~wxFrameBase()
+{
+ // this destructor is required for Darwin
+}
+
wxFrame *wxFrameBase::New(wxWindow *parent,
wxWindowID id,
const wxString& title,
{
wxPoint pt = wxTopLevelWindow::GetClientAreaOrigin();
-#if wxUSE_TOOLBAR
+#if wxUSE_TOOLBAR && !defined(__WXUNIVERSAL__)
wxToolBar *toolbar = GetToolBar();
if ( toolbar && toolbar->IsShown() )
{
if (item->IsCheckable())
{
item->Toggle();
+
// use the new value
commandEvent.SetInt(item->IsChecked());
}
{
if ( menubar )
{
- m_frameMenuBar = menubar;
menubar->Attach((wxFrame *)this);
+ m_frameMenuBar = menubar;
}
}