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 theTEInitprocedure and creating an edit record for the window with theTEStyleNewfunction or theTENewfunction.The
TEStyleNewfunction 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. TheTENewfunction 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
TEDisposeprocedure 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
 
  
  
 