POSTEVENTS Object
- Last UpdatedMar 24, 2023
- 1 minute read
You may provide a PostEvents object, which should provide the methods described below.
To use this feature, you must create a global object of this type and call it '!!postEvents'.
The method !!postEvents.postMark will be called every time an undoable is created, after the undoable has been added to the undo stack.
This refers to all undoables, whether created by a MARKDB command, an undoable object or within core functionality.
Similarly, the method postUndo will be called after an UNDO has occurred, and so on. Each method will be passed a STRING object containing the name of the mark with which the mark, undo, or redo is associated.
Methods
|
Name |
Result |
Purpose |
|---|---|---|
|
postMark(STRING) |
NO RESULT |
Called after an undoable has been added to the undo stack. STRING is the description text associated with the undoable object. |
|
postUndo (STRING) |
NO RESULT |
Called after an undo has occurred. STRING is the description text associated with the undoable object. |
|
postRedo(STRING) |
NO RESULT |
Called after a redo has occurred. STRING is the description text associated with the undoable object. |
|
postClearMark() |
NO RESULT |
Called after a clearMark has occurred. |
|
postClearAll() |
NO RESULT |
Called after a clearAll has occurred. |