Page 1 of 1

How Right to cancel the add table row data

Posted: Tue May 01, 2018 9:10 pm
by mohonko
Hello! Your advice, please. On the form, created a button that adds a row to the table and inserts a digit in the first column. If I create an " Undo group "at the beginning of the row creation and finish its creation after adding a digit, then I try to cancel the"Access violation" error. At the beginning of the row is added, write
"rve.BeginUndoCustomGroup('Add Table Main Line');
rve.Set Undo Group Mode (True);"
then there are actions that add a string and a number, and then give the command "rve.Set Undo Group Mode(False);"

Re: How Right to cancel the add table row data

Posted: Wed May 02, 2018 6:56 pm
by Sergey Tkachenko
What's your code exactly? Can you post it here?

Unfortunately, the current version of grouping undo operations does not allow grouping operations inside cells (text insertion) and operations outside cells (row addition).
But AV must not happen.

I have an idea how to improve undo grouping, I'll see if I can implement it in the next update.

Re: How Right to cancel the add table row data

Posted: Thu May 17, 2018 3:55 pm
by Sergey Tkachenko
Implemented in TRichView 17.4