Important: The information in this document is obsolete and should not be used for new development.
TESetText
TheTESetText
procedure incorporates a copy of the specified text into the designated edit record.
PROCEDURE TESetText (text: Ptr; length: LongInt; hTE: TEHandle);
text
- A pointer to the text to be copied and incorporated.
length
- The number of characters in the text to be incorporated.
hTE
- A handle to the edit record into which the text is to be copied.
DESCRIPTION
TheTESetText
procedure copies the specified text into the existinghText
handle of the edit record, resizing the buffer, if necessary; it doesn't bring in the original text. The copied text is wrapped to the destination rectangle, and itslineStarts
andnLines
fields are calculated accordingly. The selection range is set to an insertion point at the end of the incorporated text. TheTESetText
procedure does not display the copied text on the screen. To do this, callTEUpdate
.