added, implemented, documented wxTE_RICH2 and wxTextCtrl::GetRange()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-01-09 01:32:02 +00:00
parent 88633ca7c6
commit a5aa80862c
6 changed files with 236 additions and 186 deletions

View File

@@ -278,7 +278,7 @@ bool wxTextCtrlBase::CanPaste() const
}
// ----------------------------------------------------------------------------
// misc
// selection and ranges
// ----------------------------------------------------------------------------
void wxTextCtrlBase::SelectAll()
@@ -291,6 +291,11 @@ 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 )
{