Important: The information in this document is obsolete and should not be used for new development.
TECut
TheTECut
procedure removes the current selection range from the text of the designated edit record, redrawing the text as necessary.
PROCEDURE TECut (hTE: TEHandle);
hTE
- A handle to the edit record containing the text to be cut.
DESCRIPTION
For monostyled text, theTECut
procedure writes the cut text to the private scrap.For multistyled text,
TECut
writes the cut text to the private scrap and its character attributes to the style scrap; it also writes both to the Scrap Manager's desk scrap. For multistyled text, theTECut
procedure removes the character attributes from the style record's style table when the text is cut.For both monostyled and multistyled text, if the selection range is an insertion point, TextEdit deletes everything from the private scrap. When the selection range is an insertion point and the text is multistyled,
TECut
has no effect on the style scrap or the Scrap Manager's desk scrap.SEE ALSO
For more information about the desk scrap, see the chapter "Scrap Manager" in
Inside Macintosh: More Macintosh Toolbox.