On OS X, the button for wxID_HELP should never accept a label, also, tweak sizing for help button in OS X Cocoa case. (fixes #10595)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2009-03-15 19:03:58 +00:00
parent b31eaa5c34
commit 423939b29a
3 changed files with 3 additions and 3 deletions

View File

@@ -1044,7 +1044,7 @@ void wxWindowMac::SetLabel(const wxString& title)
{
m_label = title ;
if ( m_peer && m_peer->IsOk() )
if ( m_peer && m_peer->IsOk() && !(IsKindOf( CLASSINFO(wxButton) ) && GetId() == wxID_HELP) )
m_peer->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics), GetFont().GetEncoding() ) ;
// do not trigger refreshes upon invisible and possible partly created objects