TrackUndoManager Object
Description
Manager used to Undo and Redo edit operations in the track control (Track Control).
For a list of all members defined in this module, see TrackUndoManager Members.
Remarks
The TrackUndoManager allows certain edit operations to be undone and redone in the track control. Supported operations include:
- Add/Remove/Move markers
- Add/Remove/Move/Resize Blocks
If any of these operations are performed, they can easily be undone/redone using the methods of the TrackUndoManager.
The methods StartGroup and EndGroup are used to "group" a set of "undoable" operations together. Grouping the operations is useful as grouped operations can be undone or redone with a single call to Undo or Redo. If the operations are not grouped, you would have to call Undo or Redo for each operation performed.
"Undoable" operations performed between StartGroup and EndGroup will be undone/redone with a single call to Undo or Redo.
In the sample below, a single Undo call will replace all deleted blocks/keys, no matter how many were deleted.
Dim Block As TrackBlock
TrackControl.UndoManager.StartGroup
For Each Block In TrackControl.SelectedBlocks
Block.Item.RemoveBlock Block.Index
Next
TrackControl.UndoManager.EndGroup
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.