Protect part of RichView document

General TRichView support forum. Please post your questions here
Post Reply
MedComTech
Posts: 1
Joined: Sat Feb 15, 2014 1:15 pm

Protect part of RichView document

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

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