Table.OnCellEditing

General TRichView support forum. Please post your questions here
Post Reply
JonRobertson
Posts: 164
Joined: Tue Nov 08, 2011 5:11 pm

Table.OnCellEditing

Post by JonRobertson »

I've implemented OnCellEditing to prevent the user from editing the first column of a table. When I click in any cell in the first column, the carrot moves to the left of the table and is as tall as the entire table.

I'm going to investigate using OnCaretMove to prevent this, as suggested elsewhere on the forum. I'm just wondering if this is intentional behavior or whether there is another way to prevent it from occurring.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

OnCellEditing prevents placing the caret inside the specific cell. Since it must be placed somewhere, it is placed near the table.

If you want to protect the cell content, the alternative way is to use paragraph and text protection properties: Options of paragraph style, Protection of text style.
Post Reply