Added support for timer events in Motif

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Guillermo Rodriguez Garcia 2000-03-06 00:59:31 +00:00
parent ee8dbe6308
commit b3ddc4c2ec
2 changed files with 7 additions and 2 deletions

View File

@ -21,7 +21,9 @@ class WXDLLEXPORT wxTimer : public wxTimerBase
friend void wxTimerCallback(wxTimer * timer);
public:
wxTimer();
wxTimer() { Init(); }
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
{ Init(); }
~wxTimer();
virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
@ -30,6 +32,8 @@ public:
virtual bool IsRunning() const { return m_id != 0; }
protected:
void Init();
long m_id;
private:

View File

@ -51,9 +51,10 @@ void wxTimerCallback (wxTimer * timer)
timer->Notify();
}
wxTimer::wxTimer()
void wxTimer::Init()
{
m_id = 0;
m_milli = 1000;
}
wxTimer::~wxTimer()