Page 1 of 1

DeleteItems and Undo

Posted: Mon Mar 30, 2015 3:48 pm
by johnF
Hi,

Is it possible to undo/redo DeleteItems? I have tried the code below but got errors when clicking Undo.

Code: Select all

BeginUndoGroup(rvutDelete); 
SetUndoGroupMode(True); 
try 
  DeleteItems(5, 5);
finally 
  SetUndoGroupMode(False); 
end;
Cheers, Jim.

Posted: Wed Apr 01, 2015 5:24 pm
by Sergey Tkachenko
DeleteItems is not an editing operations, it cannot be undone.
Select these items using SetSelectionBounds and call DeleteSelection.