added wxTextCtrl::GetSelection() returning a wxString - useful for multiline controls under Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -368,6 +368,13 @@ working with controls that contain large amounts of text.
|
||||
Gets the current selection span. If the returned values are equal, there was
|
||||
no selection.
|
||||
|
||||
Please note that the indices returned may be used with the other wxTextctrl
|
||||
methods but don't necessarily represent the correct indices into the string
|
||||
returned by \helpref{GetValue()}{wxtextctrlgetvalue} for multiline controls
|
||||
under Windows, you should use another version of
|
||||
\helpref{GetSelection()}{wxtextctrlgetselectionstring} to get the selected
|
||||
text.
|
||||
|
||||
\wxheading{Parameters}
|
||||
|
||||
\docparam{from}{The returned first position.}
|
||||
@@ -380,6 +387,13 @@ consisting of the from and to values.}
|
||||
\perlnote{In wxPerl this method takes no parameter and returns a
|
||||
2-element list {\tt ( from, to )}.}
|
||||
|
||||
\membersection{wxTextCtrl::GetSelection}\label{wxtextctrlgetselectionstring}
|
||||
|
||||
\func{virtual wxString}{GetSelection}{\void}
|
||||
|
||||
Gets the text currently selected in the control. If there is no selection, the
|
||||
returned string is empty.
|
||||
|
||||
\membersection{wxTextCtrl::GetValue}\label{wxtextctrlgetvalue}
|
||||
|
||||
\constfunc{wxString}{GetValue}{\void}
|
||||
|
Reference in New Issue
Block a user