added SetLabelText() and EscapeMnemonics()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -159,6 +159,14 @@ wxString wxControlBase::RemoveMnemonics(const wxString& str)
|
||||
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user