git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47953
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_cocoaNSView = NULL;
SetNSTextField([[NSTextField alloc] initWithFrame:MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
m_cocoaNSView = NULL;
SetNSTextField([[NSTextField alloc] initWithFrame:MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
- [GetNSTextField() setStringValue:wxNSStringWithWxString(wxStripMenuCodes(label, wxStrip_Mnemonics))];
+ [GetNSTextField() setStringValue:wxNSStringWithWxString(GetLabelText(label))];
// [GetNSTextField() setBordered: NO];
[GetNSTextField() setBezeled: NO];
[GetNSTextField() setEditable: NO];
// [GetNSTextField() setBordered: NO];
[GetNSTextField() setBezeled: NO];
[GetNSTextField() setEditable: NO];
void wxStaticText::SetLabel(const wxString& label)
{
void wxStaticText::SetLabel(const wxString& label)
{
- [GetNSTextField() setStringValue:wxNSStringWithWxString(wxStripMenuCodes(label, wxStrip_Mnemonics))];
+ [GetNSTextField() setStringValue:wxNSStringWithWxString(GetLabelText(label))];
NSRect oldFrameRect = [GetNSTextField() frame];
NSView *superview = [GetNSTextField() superview];
wxLogTrace(wxTRACE_COCOA_Window_Size, wxT("wxStaticText::SetLabel Old Position: (%d,%d)"), GetPosition().x, GetPosition().y);
NSRect oldFrameRect = [GetNSTextField() frame];
NSView *superview = [GetNSTextField() superview];
wxLogTrace(wxTRACE_COCOA_Window_Size, wxT("wxStaticText::SetLabel Old Position: (%d,%d)"), GetPosition().x, GetPosition().y);