From: Robin Dunn <robin@alldunn.com> Date: Fri, 31 Dec 2004 23:01:01 +0000 (+0000) Subject: Send EVT_TEXT from wxTextCtrl::SetValue to conform with the wx standard X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e8b4fd4bc1875c0d0ca67097adf9e07514486e10 Send EVT_TEXT from wxTextCtrl::SetValue to conform with the wx standard git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index 3b06665ebf..b85c0b9abd 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -433,6 +433,11 @@ void wxTextCtrl::SetValue(const wxString& str) return ; GetPeer()->SetStringValue(str) ; + + wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_windowId); + event.SetString( GetValue() ) ; + event.SetEventObject( this ); + GetEventHandler()->ProcessEvent(event); } void wxTextCtrl::SetMaxLength(unsigned long len)