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 / Setting and Getting an Edit Record's Text and Character Attribute Information


TESetText

The TESetText 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
The TESetText procedure copies the specified text into the existing hText 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 its lineStarts and nLines fields are calculated accordingly. The selection range is set to an insertion point at the end of the incorporated text. The TESetText procedure does not display the copied text on the screen. To do this, call TEUpdate.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996