void wxWindowMac::SetLabel(const wxString& title)
{
+ if ( title == m_label )
+ return;
+
m_label = title ;
- if ( m_peer && m_peer->IsOk() && !(IsKindOf( CLASSINFO(wxButton) ) && GetId() == wxID_HELP) )
+ InvalidateBestSize();
+
+ if ( m_peer && m_peer->IsOk() )
m_peer->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ;
// do not trigger refreshes upon invisible and possible partly created objects
break;
}
- if ( UseBgCol() && MacGetTopLevelWindow() )
+ if ( UseBgCol() )
{
dc.SetBackground(GetBackgroundColour());
dc.Clear();