From: David Elliott Date: Mon, 15 Dec 2003 16:49:46 +0000 (+0000) Subject: Strip menu codes from label X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f9c135f5ec64f3454d66d73464abca0bbc1a1da4 Strip menu codes from label git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/statbox.mm b/src/cocoa/statbox.mm index 7e6e457e7e..202608a7be 100644 --- a/src/cocoa/statbox.mm +++ b/src/cocoa/statbox.mm @@ -16,6 +16,7 @@ #endif //WX_PRECOMP #include "wx/cocoa/autorelease.h" +#include "wx/cocoa/string.h" #import #import @@ -37,7 +38,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid, return false; m_cocoaNSView = NULL; SetNSBox([[NSBox alloc] initWithFrame:MakeDefaultNSRect(size)]); - [GetNSBox() setTitle:[NSString stringWithCString:title.c_str()]]; + [GetNSBox() setTitle:wxNSStringWithWxString(wxStripMenuCodes(title))]; if(m_parent) m_parent->CocoaAddChild(this); SetInitialFrameRect(pos,size);