wxStatusBarGeneric::~wxStatusBarGeneric()
{
- // VZ: what is this for? please comment...
-#ifdef __WXMSW__
- SetFont(wxNullFont);
-#endif // MSW
}
bool wxStatusBarGeneric::Create(wxWindow *parent,
// 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);
-#endif
InitColours();
#ifdef __WXPM__
for (i = m_nFields - 1; i >= number; --i)
m_statusStrings.RemoveAt(i);
- wxStatusBarBase::SetFieldsCount(number, widths);
-
// forget the old cached pixel widths
m_widthsAbs.Empty();
+ wxStatusBarBase::SetFieldsCount(number, widths);
+
wxASSERT_MSG( m_nFields == (int)m_statusStrings.GetCount(),
_T("This really should never happen, can we do away with m_nFields here?") );
}