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