Hi, I cannot undo lines added by code below:-
rve.BeginUpdate;
rve.BeginUndoGroup(rvutMiscTyping); // Tried everything ???
rve.SetUndoGroupMode(True);
rve.AddNL('', CurTextStyleNo, CurParStyleNo);
rve.CurTextStyleNo:= TextStyleNo;
rve.CurParaStyleNo:= ParStyleNo;
rve.AddNL(DateStr, TextStyleNo, ParStyleNo);
rve.CurTextStyleNo:= CurTextStyleNo;
rve.CurParaStyleNo:= CurParStyleNo;
rve.AddNL('', CurTextStyleNo, CurParStyleNo);
rve.SetUndoGroupMode(False);
rve.EndUpdate;
// Paint (will not show unless we ReFormat ???)
rve.ReFormat;
Help With UnDo
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Some methods (like AddNL) were designed for quick creation of new documents. They cannot be undone.
Some methods were designed for editing operations. They can be undone.
Please read http://www.trichview.com/help/viewer_vs_editor.html
Some methods were designed for editing operations. They can be undone.
Please read http://www.trichview.com/help/viewer_vs_editor.html
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: