This commit was manufactured by cvs2svn to create tag 'wxPy_2_3_4_1'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/wxPy_2_3_4_1@18324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5,9 +5,9 @@ member functions that take a wxScrollEvent argument. You can use
|
||||
{\tt EVT\_COMMAND\_SCROLL...} macros with window IDs for when intercepting
|
||||
scroll events from controls, or {\tt EVT\_SCROLL...} macros without window IDs
|
||||
for intercepting scroll events from the receiving window - except for this,
|
||||
the macros behave exactly the same
|
||||
the macros behave exactly the same.
|
||||
|
||||
\twocolwidtha{7cm}
|
||||
\twocolwidtha{9cm}
|
||||
\begin{twocollist}\itemsep=0pt
|
||||
\twocolitem{{\bf EVT\_SCROLL(func)}}{Process all scroll events.}
|
||||
\twocolitem{{\bf EVT\_SCROLL\_TOP(func)}}{Process wxEVT\_SCROLL\_TOP scroll-to-top events (minium position).}
|
||||
@@ -34,3 +34,22 @@ sent as the user drags the thumbtrack).}
|
||||
\end{twocollist}%
|
||||
|
||||
|
||||
|
||||
\wxheading{The difference between {\tt EVT\_SCROLL\_THUMBRELEASE} and {\tt EVT\_SCROLL\_ENDSCROLL}}
|
||||
|
||||
The {\tt EVT\_SCROLL\_THUMBRELEASE} event is only emitted when actually dragging
|
||||
the thumb using the mouse and releasing it (This {\tt EVT\_SCROLL\_THUMBRELEASE}
|
||||
event is also followed by an {\tt EVT\_SCROLL\_ENDSCROLL} event).
|
||||
|
||||
The {\tt EVT\_SCROLL\_ENDSCROLL} event also occurs when using the keyboard to
|
||||
change the thumb position, and when clicking next to the thumb (In all these
|
||||
cases the {\tt EVT\_SCROLL\_THUMBRELEASE} event does not happen).
|
||||
|
||||
In short, the {\tt EVT\_SCROLL\_ENDSCROLL} event is triggered when scrolling/
|
||||
moving has finished. The only exception (unfortunately) is that changing the
|
||||
thumb position using the mousewheel does give a {\tt EVT\_SCROLL\_THUMBRELEASE}
|
||||
event but NOT an {\tt EVT\_SCROLL\_ENDSCROLL} event.
|
||||
|
||||
Please see the widgets sample ("Slider" page) to see the difference
|
||||
between {\tt EVT\_SCROLL\_THUMBRELEASE} and {\tt EVT\_SCROLL\_ENDSCROLL} in action.
|
||||
|
||||
|
Reference in New Issue
Block a user