Important: The information in this document is obsolete and should not be used for new development.
TESetSelect
TheTESetSelect
procedure sets the selection range within the text of the specified
edit record.
PROCEDURE TESetSelect (selStart, selEnd: LongInt; hTE: TEHandle);
selStart
- The byte offset at the start of the text selection range.
selEnd
- The byte offset at the end of the text selection range.
hTE
- A handle to the edit record.
DESCRIPTION
TheTESetSelect
procedure removes highlighting of the old selection range and highlights the new one. IfselStart
equalsselEnd
, the new selection range is an insertion point, and a caret is displayed. IfselEnd
is anywhere beyond the last character of the text,TESetSelect
uses the first position past the last character. TheselEnd
andselStart
fields can range from 0 to 32767.SPECIAL CONSIDERATIONS
When only the Roman script system is used, the selection range is always displayed and highlighted as a continuous range of text. However, when one or more script systems requiring mixed-directional display of text are installed, a continuous sequence of characters in memory may appear as a discontinuous selection when displayed.