Description

Read-write property, allows the freezing of Push, Undo or Redo operations the undo-redo manager.

Property type

A Boolean value.  

Syntax

object.Disabled [= value]

The Disabled Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McUndoStack.
valueA Boolean value.

Remarks

Flush still works even if Disabled is True.

Notes

Setting MaxSize to zero will also effectively disable all undo support, but it will result in the undo stack being emptied immediately. If you set the Disabled property True, then calls to Push, Undo and Redo will do nothing but they will leave the current stack contents unchanged. You might want to do this if you have done your own Push for some operation but then are calling other methods as part of that operation that do their own Push(es).