// declarations
// ============================================================================
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "textctrlbase.h"
#endif
// emulating key presses
// ----------------------------------------------------------------------------
+#ifdef __WIN32__
+// the generic version is unused in wxMSW
+bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& WXUNUSED(event))
+{
+ return FALSE;
+}
+#else // !__WIN32__
bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event)
{
- // the generic version is unused in wxMSW
-#ifndef __WIN32__
wxChar ch = 0;
int keycode = event.GetKeyCode();
switch ( keycode )
return TRUE;
}
-#else
- event;
-#endif // !__WIN32__
return FALSE;
}
+#endif // !__WIN32__
// ----------------------------------------------------------------------------
// selection and ranges