Important: The information in this document is obsolete and should not be used for new development.
Initializing TextEdit, Creating an Edit Record, and Disposing of an Edit Record
Preparation of a window for text editing involves setting up TextEdit's internal data structures by calling theTEInit
procedure and creating an edit record for the window with theTEStyleNew
function or theTENew
function.The
TEStyleNew
function creates a new multistyled edit record. A multistyled edit record contains text whose attributes, including font, size, and style, can vary from character to character. TheTENew
function creates a new monostyled edit record. A monostyled edit record contains text that is set in a single font, size, and style. Before either of these functions is called, the window must be in the current graphics port.The
TEDispose
procedure destroys an edit record and releases the memory used for it. For a complete description of the edit record and its fields, see "An Overview of the TextEdit Data Structures" on page 2-14 and "Data Structures" on page 2-60.
Subtopics
- TEInit
- TEStyleNew
- TENew
- TEDispose