///////////////////////////////////////////////////////////////////////////////
-// Name: src/mac/carbon/statbarma.cpp
+// Name: src/osx/carbon/statbarma.cpp
// Purpose: native implementation of wxStatusBar (optional)
// Author: Stefan Csomor
// Modified by:
if ( !wxStatusBarGeneric::Create( parent, id, style, name ) )
return false;
- if ( parent->MacGetTopLevelWindow()->MacGetMetalAppearance() )
+ if ( parent->MacGetTopLevelWindow()->GetExtraStyle() & wxFRAME_EX_METAL )
SetBackgroundStyle( wxBG_STYLE_TRANSPARENT );
// normal system font is too tall for fitting into the standard height
int xpos = rect.x + leftMargin + 1;
int ypos = 1;
- if ( MacGetTopLevelWindow()->MacGetMetalAppearance() )
+ if ( MacGetTopLevelWindow()->GetExtraStyle() & wxFRAME_EX_METAL )
ypos++;
dc.SetClippingRegion(rect.x, 0, rect.width, h);
void wxStatusBarMac::SetStatusText(const wxString& text, int number)
{
- wxCHECK_RET( (number >= 0) && (number < m_nFields),
+ wxCHECK_RET( (number >= 0) && ((size_t)number < m_panes.GetCount()),
wxT("invalid status bar field index") );
if ( m_statusStrings[number] == text )
if (major >= 10)
{
// Finder statusbar border color: (Project Builder similar is 9B9B9B)
- if ( MacGetTopLevelWindow()->MacGetMetalAppearance() )
+ if ( MacGetTopLevelWindow()->GetExtraStyle() & wxFRAME_EX_METAL )
dc.SetPen(wxPen(wxColour(0x40, 0x40, 0x40), 1, wxSOLID));
else
dc.SetPen(wxPen(wxColour(0xB1, 0xB1, 0xB1), 1, wxSOLID));
dc.DrawLine(0, 0, w, 0);
}
- int i;
if ( GetFont().Ok() )
dc.SetFont(GetFont());
dc.SetBackgroundMode(wxTRANSPARENT);
- for ( i = 0; i < m_nFields; i ++ )
+ for ( size_t i = 0; i < m_panes.GetCount(); i ++ )
DrawField(dc, i);
}