Page 1 of 1

Protect part of RichView document

Posted: Mon Feb 17, 2014 10:58 am
by MedComTech
Hello.

I have a task - load in richview document data from different sources, some data must be editable, other - readonly(but with possibility to delete them).


I load readonly data in temp richview document and make ApplyParaStyleConversion with options TRVProtectOptions() << rvprModifyProtect << rvprParaStartProtect.

But I have problems with tables: I can delete text in them by selecting some cells and pressing Delete key. And I can add strings and columns to table.

Posted: Mon Feb 17, 2014 8:29 pm
by Sergey Tkachenko
These options to not block table operations.

However, I think it's a good idea to block row addition on TAB in the last row, if the table is inserted in readonly paragraph.
Also, I'll disable RichViewActions making table operations in this case.
(blocking table operations at all would affect existing projects)

These options do not prevent table content from deletion. You can try using OnEditCell event.