]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textentrycmn.cpp
adding impl for Create( wxPrinterDC
[wxWidgets.git] / src / common / textentrycmn.cpp
index 61d80ffbaaae6619940ec73a54a7f42ed1e34fe2..c6b769601e4256fe2863a0afcb8c347c5b32a15c 100644 (file)
@@ -80,6 +80,14 @@ bool wxTextEntryBase::HasSelection() const
     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;