Page 1 of 1

Why wxTimer do not work?

Posted: Tue Dec 01, 2009 1:48 pm
by happybamboo
I have derived a class MyCanvas from wxScrolledCanvas,and in MyCanvas there is a wxTimer m_timer,and there is a member function void OnTimer(wxTimerEvent&event).I think nothing is wrong.But no matter how i tryed,I can not receive Timer Event.
So my question is: can wxScrolledCanvas receive wxTimerEvent?
By the way,in my program I use wxMDIParentFrame and wxMDIChildFrame,could it be the reason why the problem happened?

Posted: Tue Dec 01, 2009 5:32 pm
by Auria

Posted: Wed Dec 02, 2009 1:05 am
by happybamboo
Auria wrote:I think you need to call ... ersetowner
Yes,you are right,thank you very very very very much.
this problem puzzled me for a week.........
thank you again.