Important: The information in this document is obsolete and should not be used for new development.
TEInsert
TheTEInsert
procedure 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 theTEInsert
procedure and a range of text is selected,TEInsert
doesn't affect the selection range. TheTEInsert
procedure 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. TheTEInsert
procedure recalculates line starts and line heights to adjust for the inserted text.