From: Vadim Zeitlin Date: Wed, 24 Jan 2007 22:32:44 +0000 (+0000) Subject: document that the parent window gets EVT_LEAVE_WINDOW when the mouse enters one of... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/829999103382273f642ddbcfd1537dfc9af13104?ds=sidebyside document that the parent window gets EVT_LEAVE_WINDOW when the mouse enters one of its children git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/mouseevt.tex b/docs/latex/wx/mouseevt.tex index 57ac72ac10..5fd98f88d1 100644 --- a/docs/latex/wx/mouseevt.tex +++ b/docs/latex/wx/mouseevt.tex @@ -9,6 +9,12 @@ left mouse button, {\tt wxMOUSE\_BTN\_MIDDLE} for the middle one and middle button so a portable application should avoid relying on the events from it. +For the \texttt{wxEVT\_ENTER\_WINDOW} and \texttt{wxEVT\_LEAVE\_WINDOW} events +purposes, the mouse is considered to be inside the window if it is in the +window client area and not inside one of its children. In other words, the +parent window receives \texttt{wxEVT\_LEAVE\_WINDOW} event not only when the +mouse leaves the window entirely but also when it enters one of its children. + {\bf NB:} Note that under Windows CE mouse enter and leave events are not natively supported by the system but are generated by wxWidgets itself. This has several drawbacks: the LEAVE\_WINDOW event might be received some time after the mouse