implemented, tested and documented wxTextCtrl::SetMaxLength()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -826,6 +826,14 @@ void wxTextCtrl::DiscardEdits()
|
||||
m_modified = FALSE;
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetMaxLength(unsigned long len)
|
||||
{
|
||||
if ( !HasFlag(wxTE_MULTILINE) )
|
||||
{
|
||||
gtk_entry_set_max_length(GTK_ENTRY(m_text), len);
|
||||
}
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetSelection( long from, long to )
|
||||
{
|
||||
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
|
||||
|
Reference in New Issue
Block a user