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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user