wxCHECK_RET( m_widget != NULL, wxT("invalid button") );
wxControl::SetLabel( label );
- PostSetLabel();
}
wxString wxBitmapButton::GetLabel() const
{
wxCHECK_RET( m_widget != NULL, wxT("invalid bitmap button") );
+ InvalidateBestSize();
+
wxBitmap the_one;
if (!m_isEnabled)
the_one = m_bmpDisabled;
best.x = m_bmpNormal.GetWidth()+border;
best.y = m_bmpNormal.GetHeight()+border;
}
+ CacheBestSize(best);
return best;
}