Пример #1
0
/* 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);
}
Пример #2
0
wxString wxStaticTextBase::GetLabelText() const
{
    wxString ret(GetLabel());

    if (HasFlag(wxST_MARKUP))
        ret = RemoveMarkup(ret);
    return RemoveMnemonics(ret);
}
Пример #3
0
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);
}
Пример #4
0
void wxStaticText::DoSetLabel(const wxString& label)
{
    m_labelOrig = label;
    m_label = RemoveMnemonics(label);
    m_peer->SetLabel(m_label , GetFont().GetEncoding() );
}
Пример #5
0
/*static*/
wxString wxStaticTextBase::GetLabelText(const wxString& label)
{
    // remove markup
    wxString ret = RemoveMarkup(label);
    return RemoveMnemonics(ret);
}
Пример #6
0
void wxStaticText::DoSetLabel(const wxString& label)
{
    m_label = RemoveMnemonics(label);
    GetPeer()->SetLabel(m_label , GetFont().GetEncoding() );
}