git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59567
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxString& name)
{
wxString label(lbl);
- if (label.empty() && wxIsStockID(id))
+ if (label.empty() && wxIsStockID(id) && !(id == wxID_HELP))
label = wxGetStockLabel(id);
m_macIsUserPane = false ;
wxSize wxButton::DoGetBestSize() const
{
if ( GetId() == wxID_HELP )
- return wxSize( 20 , 20 ) ;
+ return wxSize( 23 , 23 ) ;
wxSize sz = GetDefaultSize() ;
{
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