If I were to start an undo group with the following calls, which undo type should I should?
RVE.InsertPicture
RVE.SetItemExtraIntProperty(height)
RVE.SetItemExtraIntProperty(width)
RVE.InsertStringTag
RVE.SetCurrentItemExtraStrProperty(Alt);
Is rvutCustom type that I should be using?
Undo type selection
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Code: Select all
RVE.TopLevelEditor.BeginUndoGroup(rvutInsert);
RVE.TopLevelEditor.SetUndoGroupMode(True);
try
if RVE.InsertPicture(...) then begin
RVE.SetCurrentItemExtraIntProperty(rvepImageHeight, ...);
RVE.SetCurrentItemExtraIntProperty(rvepImageWidth, ...);
RVE.SetCurrentItemExtraStrProperty(rvespAlt, ...);
end;
finally
RVE.TopLevelEditor.SetUndoGroupMode(False);
end;
Last edited by Sergey Tkachenko on Tue Jun 17, 2008 5:08 am, edited 1 time in total.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: