]> Creatis software - bbtk.git/commitdiff
revert for EVENT on Input Text
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 8 Apr 2010 14:36:32 +0000 (14:36 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Thu, 8 Apr 2010 14:36:32 +0000 (14:36 +0000)
packages/wx/src/bbwxInputText.cxx

index 90ed958a3586c216c0f0512596e9a1fb0d354b09..20a7e441366668bd8d3b6558ec516da05e466a56 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxInputText.cxx,v $
   Language:  C++
-  Date:      $Date: 2010/03/29 13:59:22 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2010/04/08 14:36:32 $
+  Version:   $Revision: 1.9 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -77,8 +77,12 @@ namespace bbwx
     
     mwxTextCtrl = new wxTextCtrl( panel, -1, In,
                                  wxDefaultPosition, wxSize(800,20));
-                                 
-    Connect( mwxTextCtrl->GetId(),  wxEVT_COMMAND_TEXT_ENTER, 
+
+    // The following was supposed to generate an event, only on ENTER key ...
+    // ... but nothing happens (no event at all ?!?)                     
+    //Connect( mwxTextCtrl->GetId(),  wxEVT_COMMAND_TEXT_ENTER,
+    
+     Connect( mwxTextCtrl->GetId(),  wxEVT_COMMAND_TEXT_UPDATED,     
             (wxObjectEventFunction) 
             (wxEventFunction)
             (wxCommandEventFunction)