(from samples /widgets/gauge.cpp :)
Set up event constants
enum
{
GaugePage_Reset = wxID_HIGHEST,
GaugePage_Progress,
Attach an event to your member function (using the event constant)
EVT_TIMER(GaugePage_Timer, GaugeWidgetsPage::OnProgressTimer)
and then you will need to create and start your timer.
static const int INTERVAL = 300;
m_timer = new wxTimer(this, GaugePage_Timer);
m_timer->Start(INTERVAL);
, , , Window ISA wxEventHandler, 'this' ( ) . , , EVT_TIMER, , OnProgressTimer.
...
void GaugeWidgetsPage::OnProgressTimer(wxTimerEvent& event)
{
, .