wxWidgets/tests/events
Vadim Zeitlin bbdee10d5f Fix recently broken forwarding of events between event handlers.
After the recent changes to the event processing logic, forwarding an event
from one event handler to another one stopped working correctly because the
per-event "process here only" flag prevented it from following the event
handler chain after forwarding. This notably broke keyboard navigation in
wxComboCtrl under MSW in wx itself and probably quite a few of other things in
user code.

Fix this by replacing the boolean flag with a pointer to the handler to which
the processing of this event should be restricted. This allows the full
processing to still take place if an event is forwarded to another handler.
So wxEvent::ShouldProcessHereOnly() is now called ShouldProcessOnlyIn() and
takes a wxEvtHandler parameter.

This made appear a problem in wxScrollHelperEvtHandler code that was hidden by
the bug above: the events were still processed multiple times in it. To fix
this, also add wxEvent::DidntHonourProcessOnlyIn() and take it into account in
the base class code. Did I mention that wxScrollHelperEvtHandler must die?

Add another unit test checking that forwarding works correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-02 11:58:31 +00:00
..
clone.cpp this one should really work 2009-03-23 11:01:33 +00:00
evthandler.cpp fix errors in EvtHandlerTestCase::BindFunctor() in optimized build: apparently compiler is smart enough to detect that the same object can be used for all temporaries 2009-05-17 10:56:14 +00:00
evtsource.cpp Merge SOC2009_FSWATCHER branch into trunk. 2009-10-22 11:35:43 +00:00
propagation.cpp Fix recently broken forwarding of events between event handlers. 2010-06-02 11:58:31 +00:00
stopwatch.cpp remove TestTimer() (adds nothing to existing tests) and move wxStopWatch tests to a new CppUnit test. 2010-05-16 15:44:17 +00:00
timertest.cpp remove TestTimer() (adds nothing to existing tests) and move wxStopWatch tests to a new CppUnit test. 2010-05-16 15:44:17 +00:00