- You may derive a new class from wxTimer and override the
- wxTimer::Notify member to perform the required action.
- Or you may redirect the notifications to any
- wxEvtHandler derived object by using the non-default
- constructor or wxTimer::SetOwner. Then use the @c EVT_TIMER
- macro to connect it to the event handler which will receive
- wxTimerEvent notifications.
- Or you may use a derived class and the @c EVT_TIMER
- macro to connect it to an event handler defined in the derived class.
- If the default constructor is used, the timer object will be its
- own owner object, since it is derived from wxEvtHandler.
-
- In any case, you must start the timer with wxTimer::Start
- after constructing it before it actually starts sending notifications. It can
- be stopped later with wxTimer::Stop.
+ - You may derive a new class from wxTimer and override the
+ wxTimer::Notify member to perform the required action.
+ - You may redirect the notifications to any wxEvtHandler derived object by
+ using the non-default constructor or wxTimer::SetOwner.
+ Then use the @c EVT_TIMER macro to connect it to the event handler which
+ will receive wxTimerEvent notifications.
+ - You may use a derived class and the @c EVT_TIMER macro to connect it to
+ an event handler defined in the derived class. If the default constructor
+ is used, the timer object will be its own owner object, since it is
+ derived from wxEvtHandler.
+
+ In any case, you must start the timer with wxTimer::Start() after constructing
+ it before it actually starts sending notifications.
+ It can be stopped later with wxTimer::Stop().