Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /
Chapter 2 - TextEdit / TextEdit Reference
Routines / Displaying and Scrolling Text


TECut

The TECut 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, the TECut 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, the TECut 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996