]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/srchctrl_osx.cpp
Implement bitmap mask copying in wxX11.
[wxWidgets.git] / src / osx / srchctrl_osx.cpp
index 7881f00e349e94a3cd1a272c2fabb33c02961052..58cc5313ec9f3b02404c4d503fba602653cbbec4 100644 (file)
@@ -3,9 +3,9 @@
 // Purpose:     implements mac carbon wxSearchCtrl
 // Author:      Vince Harron
 // Created:     2006-02-19
-// RCS-ID:      $Id: srchctrl.cpp 54820 2008-07-29 20:04:11Z SC $
+// RCS-ID:      $Id$
 // Copyright:   Vince Harron
-// License:     wxWindows licence
+// Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
 // For compilers that support precompilation, includes "wx.h".
@@ -205,6 +205,11 @@ bool wxSearchCtrl::HandleSearchFieldSearchHit()
 {
     wxCommandEvent event(wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN, m_windowId );
     event.SetEventObject(this);
+
+    // provide the string to search for directly in the event, this is more
+    // convenient than retrieving it from the control in event handler code
+    event.SetString(GetValue());
+
     return ProcessCommand(event);
 }