Added wxComboCtrl::SetHint(), GetHint()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -904,6 +904,7 @@ wxComboCtrlBase::CreateTextCtrl(int style, const wxValidator& validator)
|
||||
m_text->Create(this, wxID_ANY, m_valueString,
|
||||
wxDefaultPosition, wxSize(10,-1),
|
||||
style, validator);
|
||||
m_text->SetHint(m_hintText);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2539,4 +2540,19 @@ void wxComboCtrlBase::Undo()
|
||||
m_text->Undo();
|
||||
}
|
||||
|
||||
bool wxComboCtrlBase::SetHint(const wxString& hint)
|
||||
{
|
||||
m_hintText = hint;
|
||||
bool res = true;
|
||||
if ( m_text )
|
||||
res = m_text->SetHint(hint);
|
||||
Refresh();
|
||||
return res;
|
||||
}
|
||||
|
||||
wxString wxComboCtrlBase::GetHint() const
|
||||
{
|
||||
return m_hintText;
|
||||
}
|
||||
|
||||
#endif // wxUSE_COMBOCTRL
|
||||
|
Reference in New Issue
Block a user