]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/statusbr.cpp
corrected wxMacSetColorTableEntry (although it is not needed currently)
[wxWidgets.git] / src / generic / statusbr.cpp
index 66d903f65b1e9a22f4cd1954108312e2b6752412..2256846c67a104f31c84c4a5d891590bc3a7ee84 100644 (file)
@@ -85,6 +85,9 @@ bool wxStatusBarGeneric::Create(wxWindow *parent,
                                   wxDefaultPosition, wxDefaultSize,
                                   style | wxTAB_TRAVERSAL, name);
 
+  // The status bar should have a themed background
+  SetThemeEnabled( TRUE );
+
   // Don't wish this to be found as a child
 #ifndef __WXMAC__
   parent->GetChildren().DeleteObject(this);
@@ -127,27 +130,10 @@ void wxStatusBarGeneric::SetStatusText(const wxString& text, int number)
 
     m_statusStrings[number] = text;
 
-#ifdef __WXMAC__
-    int major,minor;
-    wxGetOsVersion( &major, &minor );
-
-    if (major >= 10)
-    {
-        Refresh();
-        return;
-    }
-#endif
-
     wxRect rect;
     GetFieldRect(number, rect);
-    wxClientDC dc(this);
-
-    dc.SetBackground( wxBrush(GetBackgroundColour(), wxSOLID) );
-    dc.SetClippingRegion( rect.x+1, rect.y+1, rect.width-1, rect.height-1 );
-    dc.Clear();
-    dc.DestroyClippingRegion();
-    dc.SetFont(GetFont());
-    DrawFieldText( dc, number );
+    
+    Refresh( TRUE, &rect );
 }
 
 wxString wxStatusBarGeneric::GetStatusText(int n) const
@@ -391,9 +377,9 @@ void wxStatusBarGeneric::InitColours()
 
     wxColour                        vColour;
 
-    vColour.Set(DawStr_CString("LIGHT GREY"));
+    vColour.Set(wxString("LIGHT GREY"));
     SetBackgroundColour(vColour);
-    vColour.Set(DawStr_CString("BLACK"));
+    vColour.Set(wxString("BLACK"));
     SetForegroundColour(vColour);
     m_defaultStatusBarFont = *wxSMALL_FONT;
 #else