]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
Applied #15375 to stop event-sending in generic wxSpinCtrl ctor (eco)
[wxWidgets.git] / src / univ / textctrl.cpp
index 8c3875cc82ca903baead1fb17845d4b5e4cc6e0f..b0efa231f6a8d4c877e1c75f69fa1849d4fa0637 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Vadim Zeitlin
 // Modified by:
 // Created:     15.09.00
-// RCS-ID:      $Id$
 // Copyright:   (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -764,7 +763,7 @@ bool wxTextCtrl::Create(wxWindow *parent,
     return true;
 }
 
-wxTextCtrl::~wxTextCtrl() wxNOEXCEPT
+wxTextCtrl::~wxTextCtrl()
 {
     delete m_cmdProcessor;
 
@@ -4709,7 +4708,7 @@ bool wxTextCtrl::PerformAction(const wxControlAction& actionOrig,
     {
         wxASSERT_MSG( IsEditable(), wxT("non editable control changed?") );
 
-        wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, GetId());
+        wxCommandEvent event(wxEVT_TEXT, GetId());
         InitCommandEvent(event);
         GetEventHandler()->ProcessEvent(event);
 
@@ -4733,7 +4732,7 @@ void wxTextCtrl::OnChar(wxKeyEvent& event)
         {
             if ( IsSingleLine() || (GetWindowStyle() & wxTE_PROCESS_ENTER) )
             {
-                wxCommandEvent event(wxEVT_COMMAND_TEXT_ENTER, GetId());
+                wxCommandEvent event(wxEVT_TEXT_ENTER, GetId());
                 InitCommandEvent(event);
                 event.SetString(GetValue());
                 GetEventHandler()->ProcessEvent(event);