]> git.saurik.com Git - wxWidgets.git/commitdiff
Send EVT_TEXT from wxTextCtrl::SetValue to conform with the wx standard
authorRobin Dunn <robin@alldunn.com>
Fri, 31 Dec 2004 23:01:01 +0000 (23:01 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 31 Dec 2004 23:01:01 +0000 (23:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index 3b06665ebf5bfd7f8d3a8c41eccf7755d517270d..b85c0b9abd8383c874703b0d244832732161886f 100644 (file)
@@ -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)