TENew
TENew Creates a new edit record
#include <TextEdit.h> TextEdit
TEHandle TENew( destRect, viewRect );
Rect * destRect ; the destination rectangle
Rect *viewRect ; the viewable display area
returns handle leading to an empty TERec
TENew allocates a handle for text, creates and initializes an edit record and
returns a handle for the record. Use TEStylNew if you want to have control
over font, face, color, and so forth.
destRect is the address of a Rect identifying the area into which the
edit record will be sent. It defines the margins used in word wrap,
justification, and so forth. It must be at least as wide as the first
character that will be drawn.
viewRect is the address of a Rect identifying the viewing area for the text. It
defines the clipping range (the visible area) for the text. It must not
be empty; the right side must be greater than the left side.
Returns: TEHandle: a handle to a TERec structure.

Notes: The edit record is initialized to use the application font for
single-spaced lines. The text will be left-justified with an insertion point
at character position 0. Use TESetJust and TESetSelect to modify these
defaults. Or modify the fields of the TERec structure and call InvalRect to
force the changes to be displayed on the next update event (i.e., then next
call to TEUpdate).
Call this function once for every edit record you want allocated. Use
TEStylNew for creating a style-aware edit record.
The caret (a blinking vertical bar) indicates the insertion point and is not
drawn until you call TEActivate.
On 128K ROMs, you will probably want to call TEAutoView to enable
automatic scrolling.
Use TEDispose when you no longer need the edit record.