#include "wx/wxprec.h"
+#include "wx/button.h"
+
#ifndef WX_PRECOMP
- #include "wx/button.h"
#include "wx/log.h"
#endif
[m_cocoaNSView release];
[GetNSButton() setBezelStyle:NSRoundedBezelStyle];
- [GetNSButton() setTitle:wxNSStringWithWxString(wxStripMenuCodes(label))];
+ [GetNSButton() setTitle:wxNSStringWithWxString(GetLabelText(label))];
[GetNSControl() sizeToFit];
if(m_parent)
void wxButton::SetLabel(const wxString& label)
{
- [GetNSButton() setTitle:wxNSStringWithWxString(wxStripMenuCodes(label))];
+ [GetNSButton() setTitle:wxNSStringWithWxString(GetLabelText(label))];
}
wxSize wxButton::DoGetBestSize() const