Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Routines / Displaying and Scrolling Text


TEInsert

The TEInsert 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 the TEInsert procedure and a range of text is selected, TEInsert doesn't affect the selection range. The TEInsert 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. The TEInsert procedure recalculates line starts and line heights to adjust for the inserted text.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996