wxWidgets/tests/events
Vadim Zeitlin a7c0de8a98 Fix event handling order in doc/view framework.
Ensure that the events are always (provided there is an open document)
processed in the following order:

1. wxDocument
2. wxView
3. wxDocManager
4. wxDocChildFrame
5. wxDocParentFrame
6. wxApp

Do this by forwarding the events from wxDocParentFrame to wxDocChildFrame
first and forward them from there to wxDocManager which -- and this part
remains unchanged -- in turn forwards them to the active wxView which finally
forwards them to wxDocument. This requires another condition in the event
handling code as we still must forward from wxDocParentFrame to wxDocManager
itself if there are no active children at all, but this is the only way to
have the same event order in all cases, whether the event is originally
received by wxDocChildFrame or wxDocParentFrame.

Document this and add a unit test verifying that things indeed work like this.

See #14314.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-04 23:59:56 +00:00
..
clone.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00
evthandler.cpp Fix crashes after using "wildcard" wxEvtHandler::Disconnect(). 2012-11-10 12:22:32 +00:00
evtsource.cpp Merge SOC2009_FSWATCHER branch into trunk. 2009-10-22 11:35:43 +00:00
keyboard.cpp Don't use Shift-TAB in keyboard test. 2012-10-24 00:25:09 +00:00
propagation.cpp Fix event handling order in doc/view framework. 2013-05-04 23:59:56 +00:00
stopwatch.cpp Increase the tolerance in wxStopWatch unit test. 2011-12-26 12:57:49 +00:00
timertest.cpp No code changes, fixed some typos. 2011-04-30 10:57:04 +00:00