-// ----------------------------------------------------------------------------
-// selection and ranges
-// ----------------------------------------------------------------------------
-
-void wxTextCtrlBase::SelectAll()
-{
- SetSelection(0, GetLastPosition());
-}
-
-wxString wxTextCtrlBase::GetStringSelection() const
-{
- long from, to;
- GetSelection(&from, &to);
-
- return GetRange(from, to);
-}
-
-wxString wxTextCtrlBase::GetRange(long from, long to) const
-{
- wxString sel;
- if ( from < to )
- {
- sel = GetValue().Mid(from, to - from);
- }
-
- return sel;