// same as ctor above
void SetOwner(wxEvtHandler *owner, int timerid = wxID_ANY)
- { m_owner = owner; m_idTimer = timerid; }
+ { m_owner = owner; m_idTimer = timerid == wxID_ANY ? wxNewId() : timerid; }
wxEvtHandler * GetOwner() const { return m_owner; }
virtual ~wxTimerBase();
#include "wx/gtk/timer.h"
#elif defined(__WXGTK__)
#include "wx/gtk1/timer.h"
-#elif defined(__WXX11__) || defined(__WXMGL__)
+#elif defined(__WXX11__) || defined(__WXMGL__) || defined(__WXDFB__)
#include "wx/generic/timer.h"
#elif defined (__WXCOCOA__)
#include "wx/cocoa/timer.h"