#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 ( GetToolBar() && GetToolBar()->IsShown() )
+ wxToolBar *toolbar = GetToolBar();
+ if ( toolbar && toolbar->IsShown() )
{
int w, h;
- GetToolBar()->GetSize(& w, & h);
+ toolbar->GetSize(&w, &h);
- if ( GetToolBar()->GetWindowStyleFlag() & wxTB_VERTICAL )
+ if ( toolbar->GetWindowStyleFlag() & wxTB_VERTICAL )
{
pt.x += w;
}
{
if (!item->IsEnabled())
return TRUE;
-
+
if (item->IsCheckable())
{
item->Toggle();