Fix GetLabel and GetLabelText to be consistent with other platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,9 +137,9 @@ wxSize wxStaticText::DoGetBestSize() const
|
||||
|
||||
void wxStaticText::SetLabel( const wxString& st )
|
||||
{
|
||||
m_label = GetLabelText( st );
|
||||
m_label = st;
|
||||
|
||||
wxMacCFStringHolder str( m_label, m_font.GetEncoding() );
|
||||
wxMacCFStringHolder str( GetLabelText(m_label), m_font.GetEncoding() );
|
||||
CFStringRef ref = str;
|
||||
OSStatus err = m_peer->SetData<CFStringRef>(kControlEntireControl, kControlStaticTextCFStringTag, ref );
|
||||
verify_noerr( err );
|
||||
|
@@ -2142,10 +2142,10 @@ void wxWindowMac::DoSetClientSize(int clientwidth, int clientheight)
|
||||
|
||||
void wxWindowMac::SetLabel(const wxString& title)
|
||||
{
|
||||
m_label = wxStripMenuCodes(title, wxStrip_Mnemonics) ;
|
||||
m_label = title ;
|
||||
|
||||
if ( m_peer && m_peer->Ok() )
|
||||
m_peer->SetLabel( m_label ) ;
|
||||
m_peer->SetLabel( wxStripMenuCodes(m_label, wxStrip_Mnemonics) ) ;
|
||||
|
||||
// do not trigger refreshes upon invisible and possible partly created objects
|
||||
if ( MacIsReallyShown() )
|
||||
|
Reference in New Issue
Block a user