TENew
TENew
Creates a new edit record 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.
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
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 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
On 128K ROMs, you will probably want to call TEAutoView to enable automatic scrolling.