#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX
#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/dataobj.h"
#endif //WX_PRECOMP
#include "wx/textentry.h"
return from < to;
}
+void wxTextEntryBase::RemoveSelection()
+{
+ long from, to;
+ GetSelection(& from, & to);
+ if (from != -1 && to != -1)
+ Remove(from, to);
+}
+
wxString wxTextEntryBase::GetStringSelection() const
{
long from, to;
{
#if wxUSE_CLIPBOARD
// check if there is any text on the clipboard
- if ( wxTheClipboard->IsSupported(wxDF_TEXT) )
+ if ( wxTheClipboard->IsSupported(wxDF_TEXT)
+#if wxUSE_UNICODE
+ || wxTheClipboard->IsSupported(wxDF_UNICODETEXT)
+#endif // wxUSE_UNICODE
+ )
+ {
return true;
+ }
#endif // wxUSE_CLIPBOARD
}