Correct Events and Event Handling overview
Change "order" to "reverse order" in "... dynamically bound handlers are searched in order of their registration ...". Use better check for C++11 in a code example. Unify whitespace usage in code examples.
This commit is contained in:
@@ -389,7 +389,7 @@ Another common example of a generic functor is boost::function<> or, since
|
||||
C++11, std::function<>:
|
||||
|
||||
@code
|
||||
#if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(10)
|
||||
#if wxCHECK_CXX_STD(201103L)
|
||||
using namespace std;
|
||||
using namespace std::placeholders;
|
||||
#else // Pre C++11 compiler
|
||||
@@ -477,7 +477,7 @@ doesn't count as having handled the event and the search continues):
|
||||
checking the static event table entries, so if both a dynamic and a static
|
||||
event handler match the same event, the static one is never going to be
|
||||
used unless wxEvent::Skip() is called in the dynamic one. Also note that
|
||||
the dynamically bound handlers are searched in order of their registration
|
||||
the dynamically bound handlers are searched in reverse order of their registration
|
||||
during program run-time, i.e. later bound handlers take priority over the
|
||||
previously bound ones.
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user