From e8b4fd4bc1875c0d0ca67097adf9e07514486e10 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 31 Dec 2004 23:01:01 +0000 Subject: [PATCH] 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 --- src/mac/carbon/textctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.45.2