- handler.Disconnect( EVT_EVENT, functor );
- handler.Disconnect( 0, EVT_EVENT, functor );
- handler.Disconnect( 0, 0, EVT_EVENT, functor );
-#endif
+ handler.Disconnect( EVT_MYEVENT, functor );
+ handler.Disconnect( 0, EVT_MYEVENT, functor );
+ handler.Disconnect( 0, 0, EVT_MYEVENT, functor );
+
+ // these calls shouldn't compile but we unfortunately can't check this
+ // automatically, you need to uncomment them manually and test that
+ // compilation does indeed fail
+ //handler.Connect(EVT_MYEVENT, &MyHandler::OnAnotherEvent, NULL, &handler);
+#endif // !wxEVENTS_COMPATIBILITY_2_8