Files
wxWidgets/src/common/srchcmn.cpp
Vadim Zeitlin 94620f6c59 Use simple wxEVT_SEARCH[_CANCEL] names for wxSearchCtrl events
The old wxEVT_SEARCHCTRL_{SEARCH,CANCEL}_BTN event names were unwieldy
and misleading because both of these events can be generated without
using the buttons, but by pressing Enter or Esc (the latter currently
works under macOS only, but this could change in the future).
2018-01-30 02:03:48 +01:00

42 lines
1.2 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: src/common/srchcmn.cpp
// Purpose: common (to all ports) bits of wxSearchCtrl
// Author: Robin Dunn
// Modified by:
// Created: 19-Dec-2006
// Copyright: (c) wxWidgets team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#if wxUSE_SEARCHCTRL
#include "wx/srchctrl.h"
#ifndef WX_PRECOMP
#endif
// ----------------------------------------------------------------------------
const char wxSearchCtrlNameStr[] = "searchCtrl";
wxDEFINE_EVENT(wxEVT_SEARCH_CANCEL, wxCommandEvent);
wxDEFINE_EVENT(wxEVT_SEARCH, wxCommandEvent);
#endif // wxUSE_SEARCHCTRL