#include "wx/control.h"
#ifndef WX_PRECOMP
+ #include "wx/dc.h"
#include "wx/log.h"
#include "wx/radiobut.h"
#include "wx/statbmp.h"
return wxStripMenuCodes(str, wxStrip_Mnemonics);
}
+/* static */
+wxString wxControlBase::EscapeMnemonics(const wxString& text)
+{
+ wxString label(text);
+ label.Replace("&", "&&");
+ return label;
+}
+
/* static */
int wxControlBase::FindAccelIndex(const wxString& label, wxString *labelOnly)
{
}
}
- // this return would generate a
+ // this return would generate a
// warning C4702: unreachable code
- // with MSVC since the function always exits from inside the loop
+ // with MSVC since the function always exits from inside the loop
//return ret;
}