Skip to main content

undoChanged

Type​

message

Summary​

Sent to the current card when the Undo action changes.

Syntax​

undoChanged

Description​

Handle the undoChanged message if you want to intercept the "Undo" menu item, providing your own Undo stack.

Undoable actions include painting actions, deletion of objects, moving of controls, and editing actions in a field. When the user performs one of these actions, thus changing what happens as a result of choosing Edit → Undo from the menubar, LiveCode sends the undoChanged message to the current card.

Examples​

on undoChanged
global lastFieldState
put field "Edit" into lastFieldState
end undoChanged

command: undo

glossary: current card, message

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

Thank you for your feedback!

Was this page helpful?