1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/scrtimer.h
3 // Purpose: wxScrollTimer: small helper class for wxScrollArrow/Thumb
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_SCRTIMER_H
12 #define _WX_UNIV_SCRTIMER_H
14 // NB: this class is implemented in scrolbar.cpp
22 // ----------------------------------------------------------------------------
23 // wxScrollTimer: the timer used when the arrow or scrollbar shaft is kept
25 // ----------------------------------------------------------------------------
27 class WXDLLIMPEXP_CORE wxScrollTimer
: public wxTimer
33 // start generating the events
34 void StartAutoScroll();
36 // the base class method
37 virtual void Notify();
40 // to implement in derived classes: perform the scroll action and return
41 // true to continue scrolling or false to stop
42 virtual bool DoNotify() = 0;
44 // should we skip the next timer event?
50 #endif // _WX_UNIV_SCRTIMER_H