Page 2 of 2

Posted: Tue Dec 28, 2010 12:29 am
by Marsianin
1. I didn't understand. But it loses these cells. Merging 8x5, unmerging 8x1

Tried to import .rvf inside the table, got a lot of Access violations and:
Assertion failure (c:\program files (x86)\delphi 2010\lib1\TRichView\DLines.pas, line 362)
Without the table import works fine. Maybe it's OnCaretMove event where you said is better way to update table's buttons on toolbars.

Posted: Tue Dec 28, 2010 11:35 am
by Sergey Tkachenko
1) If you, for example, merge a cell in 2x1 table, a row containing only nil cell appears. This row is useless, so DeleteEmptyRows is called after MergeCells to remove this row. The table becomes 1x1. A row is losed.
It is by design.

2) Sorry, without knowing your code I cannot help. I do not know how you insert RVF. If you will be able to reproduce on trichview demos, or if you can create a simple project reproducing this problem, let me know.

Posted: Tue Dec 28, 2010 3:11 pm
by Marsianin
Moved table routines to update toolbars from OnCaretMove back to another place and everything works fine again because any modification of RVE with caret inside the table fired access violation (just even typing).

Posted: Tue Dec 28, 2010 5:47 pm
by Sergey Tkachenko
Yes, modification (and even working with selection) is not expected in OnCaretMove.
Use OnCaretMove only to function related to the caret position.
Use OnSelect to update controls depending on the selection.