Stripped menu control characters from buttons, static text, radiobox.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,7 +147,7 @@ wxControl::~wxControl()
|
||||
|
||||
void wxControl::SetLabel(const wxString& title)
|
||||
{
|
||||
m_label = title ;
|
||||
m_label = wxStripMenuCodes(title) ;
|
||||
|
||||
if ( (ControlHandle) m_macControl )
|
||||
{
|
||||
@@ -155,9 +155,9 @@ void wxControl::SetLabel(const wxString& title)
|
||||
wxString label ;
|
||||
|
||||
if( wxApp::s_macDefaultEncodingIsPC )
|
||||
label = wxMacMakeMacStringFromPC( title ) ;
|
||||
label = wxMacMakeMacStringFromPC( m_label ) ;
|
||||
else
|
||||
label = title ;
|
||||
label = m_label ;
|
||||
|
||||
#if TARGET_CARBON
|
||||
c2pstrcpy( (StringPtr) maclabel , label ) ;
|
||||
|
||||
Reference in New Issue
Block a user