Important: The information in this document is obsolete and should not be used for new development.
TEInsert
TheTEInsertprocedure inserts the specified text immediately before the selection range or the insertion point in the text of the designated edit record, redrawing the
text as necessary.
PROCEDURE TEInsert (text: Ptr; length: LongInt; hTE: TEHandle);
text- A pointer to the text to be inserted.
length- The number of characters to be inserted.
hTE- A handle to the edit record containing the text buffer into which the new text is to be inserted.
DESCRIPTION
When you call theTEInsertprocedure and a range of text is selected,TEInsertdoesn't affect the selection range. TheTEInsertprocedure does not check for a 32 KB limit, so your application must ensure that the inserted text does not exceed this text size limit of 32 KB. TheTEInsertprocedure recalculates line starts and line heights to adjust for the inserted text.