Hello,
I'm using a wxTimer and I have configured it to post wx.EVT_TIMER to
the wx application, not a window. Is this an ok thing to do? The
reason I ask is that I'm not catching the timer events, but the timer
is running and everything seems to be working. I've used wxTimer many
times before, but as I mentioned this is the first time I have tried
to post events to the app instead of a window/frame/etc.
Hello,
I'm using a wxTimer and I have configured it to post wx.EVT_TIMER to
the wx application, not a window. Is this an ok thing to do? The
reason I ask is that I'm not catching the timer events, but the timer
is running and everything seems to be working. I've used wxTimer many
times before, but as I mentioned this is the first time I have tried
to post events to the app instead of a window/frame/etc.
No. Although wx.App derives from EvtHandler, and thus can participate
in some event handling, it does not have a window, and therefore
cannot receive window messages.
The Windows WM_TIMER message is implemented in an unusual way, so it
has somewhat unusual rules.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.