added wxTextCtrl::ChangeValue() which is the same as SetValue() but doesn't send the text changed event (first part of patch 1553551)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -564,6 +564,15 @@ void wxTextCtrl::SetValue(const wxString& str)
|
||||
}
|
||||
}
|
||||
|
||||
void wxTextCtrl::ChangeValue(const wxString& str)
|
||||
{
|
||||
// optimize redraws
|
||||
if ( GetValue() == str )
|
||||
return ;
|
||||
|
||||
GetPeer()->SetStringValue( str ) ;
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetMaxLength(unsigned long len)
|
||||
{
|
||||
m_maxLength = len ;
|
||||
|
||||
Reference in New Issue
Block a user