Product : Engine, Version : 5.1.1.1037, ArticleID : 41023994

HowTo : SetEnableUndoWriteIfGroupOnly usage.

Article41023994
TypeHowTo
ProductEngine
Version5.1.1.1037
Date Added6/1/2005
Submitted byEric 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.