~ubuntu-dev/wxwidgets2.6/upstream-debian

« back to all changes in this revision

Viewing changes to docs/latex/wx/spinevt.inc

  • Committer: Daniel T Chen
  • Date: 2006-06-26 10:15:11 UTC
  • Revision ID: crimsun@ubuntu.com-20060626101511-a4436cec4c6d9b35
ImportĀ DebianĀ 2.6.3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: spinevt.inc,v 1.1 2002/05/26 12:46:20 VZ Exp $
 
9
%% Copyright:   (c) wxWindows team
 
10
%% License:     wxWindows license
 
11
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
12
 
 
13
\wxheading{Event handling}
 
14
 
 
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:
 
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
 
 
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.