1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxSpinEvent documentation shared between spinevt.tex and
5 %% Author: Vadim Zeitlin
7 %% Created: 26.05.02 (extracted from spinbutt.tex)
9 %% Copyright: (c) wxWindows team
10 %% License: wxWindows license
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 \wxheading{Event handling}
15 To process input from a spin button, use one of these event handler macros to
16 direct input to member functions that take a
17 \helpref{wxSpinEvent}{wxspinevent} argument:
21 \twocolitem{{\bf EVT\_SPIN(id, func)}}{Generated whenever an arrow is pressed.}
22 \twocolitem{{\bf EVT\_SPIN\_UP(id, func)}}{Generated when left/up arrow is pressed.}
23 \twocolitem{{\bf EVT\_SPIN\_DOWN(id, func)}}{Generated when right/down arrow is pressed.}
26 Note that if you handle both SPIN and UP or DOWN events, you will be notified
27 about each of them twice: first the UP/DOWN event will be receieved and then,
28 if it wasn't vetoed, the SPIN event will be sent.