// return TRUE if the timer is one shot
bool IsOneShot() const { return m_oneShot; }
+ // return the timer ID
+ int GetId() const { return m_idTimer; }
+
+
protected:
// common part of all ctors
void Init() { m_oneShot = FALSE; m_milli = 0; }
typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
#define EVT_TIMER(timerid, func) \
- DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) (wxTimerEventFunction) & func, NULL),
+ DECLARE_EVENT_TABLE_ENTRY( wxEVT_TIMER, timerid, -1, (wxObjectEventFunction) (wxEventFunction) wxStaticCastEvent( wxTimerEventFunction, & func ), NULL),
#endif // wxUSE_GUI && wxUSE_TIMER