Why wxTimer do not work? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
happybamboo
Knows some wx things
Knows some wx things
Posts: 27
Joined: Tue Sep 16, 2008 4:19 am

Why wxTimer do not work?

Post by happybamboo » Tue Dec 01, 2009 1:48 pm

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?

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Tue Dec 01, 2009 5:32 pm

"Keyboard not detected. Press F1 to continue"
-- Windows

happybamboo
Knows some wx things
Knows some wx things
Posts: 27
Joined: Tue Sep 16, 2008 4:19 am

Post by happybamboo » Wed Dec 02, 2009 1:05 am

Auria wrote:I think you need to call
http://docs.wxwidgets.org/stable/wx_wxt ... ersetowner
Yes,you are right,thank you very very very very much.
this problem puzzled me for a week.........
thank you again.

Post Reply