![]() |
TXNCanUndo |
||||
Header: | MacTextEditor.h | Carbon status: | Supported | |
Returns whether the most recent action is undoable and provides a value that indicates the type of action than can be undone.
Boolean TXNCanUndo ( TXNObject iTXNObject, TXNActionKey *oTXNActionKey );
A variable of type TXNObject. Pass the text object for the document you want to examine.
Pass a pointer to a variable of type TXNActionKey. On return, TXNCanUndo sets the TXNActionKey parameter to an
A variable of type Boolean. If true, the last command is undoable; otherwise the last command cannot be undone.
You can call TXNCanUndo to determine whether the Undo item in the Edit menu should be enabled.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)