From: Vadim Zeitlin Date: Mon, 22 Mar 1999 12:59:39 +0000 (+0000) Subject: wxEvent::Skip() clarification added X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d6d626862232acff773485769ff6cae68f73c2f5 wxEvent::Skip() clarification added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/tevent.tex b/docs/latex/wx/tevent.tex index 2b67f2cfa3..6434617135 100644 --- a/docs/latex/wx/tevent.tex +++ b/docs/latex/wx/tevent.tex @@ -82,7 +82,11 @@ system to a native text control by overriding wxTextCtrl and defining a handler for key events using EVT\_KEY\_DOWN. This would indeed prevent any key events from being sent to the native control - which might not be what is desired. In this case the event handler function has to call Skip() -so as to indicate that it did NOT handle the event at all. +so as to indicate that the search for the event handler should continue. + +To summarize, instead of explicitly calling the base class version as you +would have done with C++ virtual functions (i.e. {\it wxTextCtrl::OnChar()}), +you should instead call \helpref{Skip}{wxeventskip}. In practice, this would look like this if the derived text control only accepts 'a' to 'z' and 'A' to 'Z':