X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da80ae712a30132bf19127db544959db7e1a7b52..a0a2b5c41c8448c478e05b7819b4c173c22c46a8:/src/mac/carbon/statbrma.cpp diff --git a/src/mac/carbon/statbrma.cpp b/src/mac/carbon/statbrma.cpp index 6a8bd124ac..926198c3b0 100644 --- a/src/mac/carbon/statbrma.cpp +++ b/src/mac/carbon/statbrma.cpp @@ -11,16 +11,17 @@ #include "wx/wxprec.h" +#if wxUSE_STATUSBAR + #include "wx/statusbr.h" #ifndef WX_PRECOMP #include "wx/dc.h" + #include "wx/dcclient.h" + #include "wx/toplevel.h" #endif -#include "wx/dcclient.h" - #include "wx/mac/private.h" -#include "wx/toplevel.h" BEGIN_EVENT_TABLE(wxStatusBarMac, wxStatusBarGeneric) @@ -58,7 +59,7 @@ bool wxStatusBarMac::Create(wxWindow *parent, wxWindowID id, return false; if ( parent->MacGetTopLevelWindow()->MacGetMetalAppearance() ) - MacSetBackgroundBrush( wxNullBrush ); + SetBackgroundStyle( wxBG_STYLE_TRANSPARENT ); // normal system font is too tall for fitting into the standard height SetWindowVariant( wxWINDOW_VARIANT_SMALL ); @@ -78,8 +79,7 @@ void wxStatusBarMac::DrawFieldText(wxDC& dc, int i) wxString text(GetStatusText( i )); - long x, y; - + wxCoord x, y; dc.GetTextExtent(text, &x, &y); int leftMargin = 2; @@ -176,3 +176,6 @@ void wxStatusBarMac::MacHiliteChanged() Refresh(); Update(); } + +#endif // wxUSE_STATUSBAR +