#include "wx/containr.h"
#endif
-#if wxUSE_STATTEXT
-
const wxChar *wxMarkupEntities[][wxMARKUP_ENTITY_MAX] =
{
// the entities handled by SetLabel() when wxST_MARKUP is used and their referenced string
{ wxT("&"), wxT("<"), wxT(">"), wxT("'"), wxT("\"") }
};
+#if wxUSE_STATTEXT
// ----------------------------------------------------------------------------
// wxTextWrapper
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)
{
return label;
}
- wxClientDC dc(wx_const_cast(wxStaticTextBase*, this));
+ wxClientDC dc(const_cast<wxStaticTextBase*>(this));
dc.SetFont(GetFont());
wxArrayInt charOffsets;