HowTo : SetEnableUndoWriteIfGroupOnly usage.
Article | 41023994 |
Type | HowTo |
Product | Engine |
Version | 5.1.1.1037 |
Date Added | 6/1/2005 |
Submitted by | Eric Che |
Keywords | |
Subject
SetEnableUndoWriteIfGroupOnly usage.
Summary
SetEnableUndoWriteIfGroupOnly usage.
Solution
If the SetEnableUndoWriteIfGroupOnly is true then VectorDraw write in the undo memory only if a Undo group is open for example after calling the CommandAction.Undo "BEGIN" and before calling the CommandAction.Undo "END"
if you have set the m_Vdraw.GetActions().SetDisableUndoGroup(TRUE); then the CommandAction.Undo will do nothing and if the SetEnableUndoWriteIfGroupOnly is true then nothing will be write in the memory undo.
The Default CommandActions like CmdMove , CmdLine etc by default make a call of Undo "Begin" in the start and Undo "END" when the command finish the job.