// generate a new unique event type
extern WXDLLIMPEXP_BASE wxEventType wxNewEventType();
-// FIXME: currently the new events code is disabled because it creates too
-// many problems, it should be reenabled a.s.a.p. or removed
-#undef wxEVENTS_COMPATIBILITY_2_8
-#define wxEVENTS_COMPATIBILITY_2_8 1
-
// New macros to create templatized event types:
#if wxEVENTS_COMPATIBILITY_2_8
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
#endif
/*
- Currently MSVC can't build the library with new-style events:
- - VC6 simply doesn't have good enough templates support
- - VC7 always seems to choos the Connect() overload using Functor, even when
- the argument is a class method
- - VC9 compiles the code fine but fails at linking stage in DLL build
+ Currently only recent MSVC compilers can build the new events code under
+ Windows.
*/
#if !wxEVENTS_COMPATIBILITY_2_8
-# if defined(__VISUALC__)
+# if !wxCHECK_VISUALC_VERSION(8)
# undef wxEVENTS_COMPATIBILITY_2_8
# define wxEVENTS_COMPATIBILITY_2_8 1
# endif
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when
// especially, to still allow building if the compiler template support is too
// bad to compile the new code.
//
-// Default is 0 for all compilers except VC6 currently.
+// Default is 0 but this is set to 1 automatically in wx/chkconf.h for the
+// compilers which can't build the new code (currently only g++ and MSVC >= 8
+// can)
//
-// Recommended setting: 0 (please upgrade your compiler instead of changing it)
+// Recommended setting: 0
#define wxEVENTS_COMPATIBILITY_2_8 0
// MSW-only: Set to 0 for accurate dialog units, else 1 for old behaviour when