Move SendTextUpdatedEvent() down to wxTextEntryBase from wxTextCtrlBase.
This will allow reusing it in wxComboBox implementation as well. Also add SendTextUpdatedEventIfAllowed() which can be used to only send the events if they were not blocked at wxTextEntry level. No real changes otherwise. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1264,8 +1264,7 @@ void wxTextCtrl::Replace(wxTextPos from, wxTextPos to, const wxString& text)
|
||||
// now call it to do the rest (not related to refreshing)
|
||||
ClearSelection();
|
||||
|
||||
if ( EventsAllowed() )
|
||||
SendTextUpdatedEvent();
|
||||
SendTextUpdatedEventIfAllowed();
|
||||
}
|
||||
|
||||
void wxTextCtrl::Remove(wxTextPos from, wxTextPos to)
|
||||
|
Reference in New Issue
Block a user