From f9c135f5ec64f3454d66d73464abca0bbc1a1da4 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 15 Dec 2003 16:49:46 +0000 Subject: [PATCH] Strip menu codes from label git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/statbox.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.50.0