#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/mac/private.h"
-#include "wx/toplevel.h"
BEGIN_EVENT_TABLE(wxStatusBarMac, wxStatusBarGeneric)
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 );
wxString text(GetStatusText( i ));
- long x, y;
-
+ wxCoord x, y;
dc.GetTextExtent(text, &x, &y);
int leftMargin = 2;
Refresh();
Update();
}
+
+#endif // wxUSE_STATUSBAR
+