use GetLabelText() instead of wxStripMenuCodes() to avoid stripping the part of the string after TAB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1136,7 +1136,7 @@ void wxWindowMac::MacPostControlCreate(const wxPoint& pos, const wxSize& size)
|
||||
// adjust font, controlsize etc
|
||||
DoSetWindowVariant( m_windowVariant ) ;
|
||||
|
||||
m_peer->SetLabel( wxStripMenuCodes(m_label) ) ;
|
||||
m_peer->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics) ) ;
|
||||
|
||||
if (!m_macIsUserPane)
|
||||
SetInitialBestSize(size);
|
||||
@@ -2088,7 +2088,7 @@ void wxWindowMac::DoSetClientSize(int clientwidth, int clientheight)
|
||||
|
||||
void wxWindowMac::SetLabel(const wxString& title)
|
||||
{
|
||||
m_label = wxStripMenuCodes(title) ;
|
||||
m_label = wxStripMenuCodes(title, wxStrip_Mnemonics) ;
|
||||
|
||||
if ( m_peer && m_peer->Ok() )
|
||||
m_peer->SetLabel( m_label ) ;
|
||||
|
Reference in New Issue
Block a user