TESetSelect
TheTESetSelectprocedure 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
TheTESetSelectprocedure removes highlighting of the old selection range and highlights the new one. IfselStartequalsselEnd, the new selection range is an insertion point, and a caret is displayed. IfselEndis anywhere beyond the last character of the text,TESetSelectuses the first position past the last character. TheselEndandselStartfields 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.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help