]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/utilscmn.cpp
Unicode fix.
[wxWidgets.git] / src / common / utilscmn.cpp
index 3fe071d7b3af9d9055e616951444d8536ea0e3d0..8ad2a9d596e13ed038af256e0be5c8e75fc5afe1 100644 (file)
@@ -355,6 +355,16 @@ StringMatch (char *str1, char *str2, bool subString, bool exact)
   return FALSE;
 }
 
   return FALSE;
 }
 
+// Don't synthesize KeyUp events holding down a key and producing
+// KeyDown events with autorepeat. On by default and always on
+// on in wxMSW. wxGTK version in utilsgtk.cpp.
+#ifndef __WXGTK__
+bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
+{
+   return TRUE;          // detectable auto-repeat is the only mode MSW supports
+}
+#endif
+
 // Return the current date/time
 // [volatile]
 wxString wxNow( void )
 // Return the current date/time
 // [volatile]
 wxString wxNow( void )
@@ -782,6 +792,7 @@ int wxMessageBox(const wxString& message, const wxString& caption, long style,
     return ans;
 }
 
     return ans;
 }
 
+#if wxUSE_TEXTDLG
 wxString wxGetTextFromUser(const wxString& message, const wxString& caption,
                         const wxString& defaultValue, wxWindow *parent,
                         int x, int y, bool WXUNUSED(centre) )
 wxString wxGetTextFromUser(const wxString& message, const wxString& caption,
                         const wxString& defaultValue, wxWindow *parent,
                         int x, int y, bool WXUNUSED(centre) )
@@ -792,6 +803,7 @@ wxString wxGetTextFromUser(const wxString& message, const wxString& caption,
     else
         return wxString("");
 }
     else
         return wxString("");
 }
+#endif // wxUSE_TEXTDLG
 
 #ifdef __MWERKS__
 char *strdup(const char *s)
 
 #ifdef __MWERKS__
 char *strdup(const char *s)