X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..f72124dbe5f289165f7c05ba6c3dcbef89e0ead6:/src/common/textcmn.cpp diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index c854878f7a..7ced7d2de5 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -46,6 +46,13 @@ // implementation // ============================================================================ +IMPLEMENT_DYNAMIC_CLASS(wxTextUrlEvent, wxCommandEvent) + +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TEXT_UPDATED) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TEXT_ENTER) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TEXT_URL) +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TEXT_MAXLEN) + // ---------------------------------------------------------------------------- // ctor // ---------------------------------------------------------------------------- @@ -272,5 +279,13 @@ void wxTextCtrlBase::SelectAll() SetSelection(0, GetLastPosition()); } -#endif // wxUSE_TEXTCTRL +#else // !wxUSE_TEXTCTRL + +// define this one even if !wxUSE_TEXTCTRL because it is also used by other +// controls (wxComboBox and wxSpinCtrl) +#include "wx/event.h" + +DEFINE_EVENT_TYPE(wxEVT_COMMAND_TEXT_UPDATED) + +#endif // wxUSE_TEXTCTRL/!wxUSE_TEXTCTRL