TimerEvent object is passed to the event handler of timer events.
For example:
class MyFrame : public Frame
{
public:
...
void OnTimer(TimerEvent& event);
private:
Timer m_timer;
};
BEGIN_EVENT_TABLE(MyFrame, Frame)
EVT_TIMER(TIMER_ID, MyFrame::OnTimer)
END_EVENT_TABLE()
MyFrame::MyFrame()
: m_timer(this, TIMER_ID)
{
m_timer.Start(1000); // 1 second interval
}
void MyFrame::OnTimer(TimerEvent& event)
{
// do whatever you want to do every second here
}
Integer get_interval()
Returns the interval of the timer which generated this event.
[This page automatically generated from the Textile source at Fri Oct 31 16:06:53 +0000 2008]