Add wxTextEntryDialog::SetMaxLength().
Allow restricting the maximal number of characters that can be entered in wxTextEntryDialog. Closes #15158. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -151,6 +151,11 @@ void wxTextEntryDialog::OnOK(wxCommandEvent& WXUNUSED(event) )
|
||||
}
|
||||
}
|
||||
|
||||
void wxTextEntryDialog::SetMaxLength(unsigned long len)
|
||||
{
|
||||
m_textctrl->SetMaxLength(len);
|
||||
}
|
||||
|
||||
void wxTextEntryDialog::SetValue(const wxString& val)
|
||||
{
|
||||
m_value = val;
|
||||
|
Reference in New Issue
Block a user