Strip menu codes from label

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-12-15 16:49:46 +00:00
parent bed6fe0c16
commit f9c135f5ec

View File

@@ -16,6 +16,7 @@
#endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/string.h"
#import <AppKit/NSBox.h>
#import <Foundation/NSString.h>
@@ -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);