]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/statusbr.cpp
allow a - at the beginning of a menu item (would become a separator by default)
[wxWidgets.git] / src / generic / statusbr.cpp
index 7916ca4434a469263aeca1aade629d3e536fce26..3e8dc6024c1a0836e24bdc8d2ae19d92eeeb82f8 100644 (file)
@@ -90,8 +90,10 @@ bool wxStatusBarGeneric::Create(wxWindow *parent,
   parent->GetChildren().DeleteObject(this);
 #endif
   InitColours();
-
-  SetFont(m_defaultStatusBarFont);
+  
+#ifdef __WXPM__
+  SetFont(*wxSMALL_FONT);
+#endif
 
   // Set the height according to the font and the border size
   wxClientDC dc(this);
@@ -368,23 +370,16 @@ void wxStatusBarGeneric::InitColours()
     SetBackgroundColour(vColour);
     vColour.Set(wxString("BLACK"));
     SetForegroundColour(vColour);
-    m_defaultStatusBarFont = *wxSMALL_FONT;
 #else
     m_mediumShadowPen = wxPen("GREY", 1, wxSOLID);
     m_hilightPen = wxPen("WHITE", 1, wxSOLID);
 #endif
-
-#ifndef __WXPM__
-    m_defaultStatusBarFont = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);
-    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
-#endif
 }
 
 // Responds to colour changes, and passes event on to children.
 void wxStatusBarGeneric::OnSysColourChanged(wxSysColourChangedEvent& event)
 {
     InitColours();
-    Refresh();
 
     // Propagate the event to the non-top-level children
     wxWindow::OnSysColourChanged(event);