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:
@@ -412,10 +412,16 @@ wxString wxTextCtrl::GetValue() const
|
||||
return tmp;
|
||||
}
|
||||
|
||||
void wxTextCtrl::SetValue( const wxString &value )
|
||||
void wxTextCtrl::DoSetValue( const wxString &value, int flags )
|
||||
{
|
||||
wxCHECK_RET( m_text != NULL, wxT("invalid text ctrl") );
|
||||
|
||||
if ( !(flags & SetValue_SendEvent) )
|
||||
{
|
||||
// do not generate events
|
||||
IgnoreNextTextUpdate();
|
||||
}
|
||||
|
||||
if (m_windowStyle & wxTE_MULTILINE)
|
||||
{
|
||||
gint len = gtk_text_get_length( GTK_TEXT(m_text) );
|
||||
|
Reference in New Issue
Block a user