]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/spinevt.inc
Commited FRM's stockitem patch (empty stock items).
[wxWidgets.git] / docs / latex / wx / spinevt.inc
... / ...
CommitLineData
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: spinevt.inc
3%% Purpose: wxSpinEvent documentation shared between spinevt.tex and
4%% spinbutt.tex
5%% Author: Vadim Zeitlin
6%% Modified by:
7%% Created: 26.05.02 (extracted from spinbutt.tex)
8%% RCS-ID: $Id$
9%% Copyright: (c) wxWindows team
10%% License: wxWindows license
11%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12
13\wxheading{Event handling}
14
15To process input from a spin button, use one of these event handler macros to
16direct input to member functions that take a
17\helpref{wxSpinEvent}{wxspinevent} argument:
18
19\twocolwidtha{7cm}
20\begin{twocollist}
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.}
24\end{twocollist}%
25
26Note that if you handle both SPIN and UP or DOWN events, you will be notified
27about each of them twice: first the UP/DOWN event will be receieved and then,
28if it wasn't vetoed, the SPIN event will be sent.