/* static */ wxString wxStaticTextBase::GetLabelText(const wxString& label) { wxString ret = RemoveMarkup(label); // always remove the markup (this function is static // and cannot check for wxST_MARKUP presence/absence) return RemoveMnemonics(ret); }
wxString wxStaticTextBase::GetLabelText() const { wxString ret(GetLabel()); if (HasFlag(wxST_MARKUP)) ret = RemoveMarkup(ret); return RemoveMnemonics(ret); }
void wxStaticText::DoSetLabel(const wxString& str) { // build our own cleaned label wxXmString label_str(RemoveMnemonics(str)); // This variable means we don't need so many casts later. Widget widget = (Widget) m_labelWidget; XtVaSetValues(widget, XmNlabelString, label_str(), XmNlabelType, XmSTRING, NULL); }
void wxStaticText::DoSetLabel(const wxString& label) { m_labelOrig = label; m_label = RemoveMnemonics(label); m_peer->SetLabel(m_label , GetFont().GetEncoding() ); }
/*static*/ wxString wxStaticTextBase::GetLabelText(const wxString& label) { // remove markup wxString ret = RemoveMarkup(label); return RemoveMnemonics(ret); }
void wxStaticText::DoSetLabel(const wxString& label) { m_label = RemoveMnemonics(label); GetPeer()->SetLabel(m_label , GetFont().GetEncoding() ); }