added support for ellipsization and markup in wxStaticText (modified patch 1629946)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,6 +122,14 @@ int wxControl::FindAccelIndex(const wxString& label, wxString *labelOnly)
|
||||
}
|
||||
|
||||
void wxControl::SetLabel(const wxString& label)
|
||||
{
|
||||
// save original label
|
||||
wxControlBase::SetLabel(label);
|
||||
|
||||
UnivDoSetLabel(label);
|
||||
}
|
||||
|
||||
void wxControl::UnivDoSetLabel(const wxString& label)
|
||||
{
|
||||
wxString labelOld = m_label;
|
||||
m_indexAccel = FindAccelIndex(label, &m_label);
|
||||
@@ -132,9 +140,4 @@ void wxControl::SetLabel(const wxString& label)
|
||||
}
|
||||
}
|
||||
|
||||
wxString wxControl::GetLabel() const
|
||||
{
|
||||
return m_label;
|
||||
}
|
||||
|
||||
#endif // wxUSE_CONTROLS
|
||||
|
Reference in New Issue
Block a user