Important: The information in this document is obsolete and should not be used for new development.
TESetText
TheTESetTextprocedure 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
TheTESetTextprocedure copies the specified text into the existinghTexthandle 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 itslineStartsandnLinesfields are calculated accordingly. The selection range is set to an insertion point at the end of the incorporated text. TheTESetTextprocedure does not display the copied text on the screen. To do this, callTEUpdate.