Samples to work with tables without rvActions

General TRichView support forum. Please post your questions here
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post 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).
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply