return true;
}
+#if wxUSE_STATUSBAR
wxStatusBar *wxFrame::OnCreateStatusBar(int number, long style, wxWindowID id,
const wxString& name)
{
m_frameStatusBar->SetSize(0, h, w, WX_MAC_STATUSBAR_HEIGHT);
}
}
+#endif // wxUSE_STATUSBAR
// Responds to colour changes, and passes event on to children.
void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
Refresh();
+#if wxUSE_STATUSBAR
if ( m_frameStatusBar )
{
wxSysColourChangedEvent event2;
event2.SetEventObject( m_frameStatusBar );
m_frameStatusBar->ProcessEvent(event2);
}
+#endif // wxUSE_STATUSBAR
// Propagate the event to the non-top-level children
wxWindow::OnSysColourChanged(event);
int cw, ch;
GetSize( &cw , &ch ) ;
-
- int statusX, statusY;
- GetStatusBar()->GetClientSize(&statusX, &statusY);
+ int statusX = 0 ;
+ int statusY = 0 ;
+
+#if wxUSE_STATUSBAR
if (GetStatusBar() && GetStatusBar()->IsShown())
{
+ GetStatusBar()->GetClientSize(&statusX, &statusY);
ch -= statusY;
}
+#endif
if (GetToolBar())
{
}
}
}
+#endif // wxUSE_TOOLBAR
void wxFrame::PositionBars()
{
#endif
}
-#endif
+