added the static function GetLabelText() to wxStaticText which was mentioned in the docs but not implemented; also fixed the return type documented for wxControl::GetLabel*() functions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2007-08-05 18:54:22 +00:00
parent 0a42e3b6ac
commit 19cf1ef3a7
4 changed files with 22 additions and 8 deletions

View File

@@ -154,6 +154,14 @@ wxString wxStaticTextBase::GetLabelText() const
return RemoveMnemonics(ret);
}
/*static*/
wxString wxStaticTextBase::GetLabelText(const wxString& label)
{
// remove markup
wxString ret = RemoveMarkup(label);
return RemoveMnemonics(ret);
}
/*static*/
wxString wxStaticTextBase::RemoveMarkup(const wxString& text)
{