Protect content of SRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
charles.lambert
Posts: 26
Joined: Mon Jul 05, 2010 7:44 pm

Protect content of SRichViewEdit

Post by charles.lambert »

Hi,

I'm creating a little application to create some reports. I've added a SRichView at design time and I allow the user to add some components like radiobuttons, checkbox, ... into the SRichView. This way he can create some reports.

What I want to do is to save the report he created in the RVF format and then set every component and text to read-only, so that no one can change the content of the report...

I'm able to protect a paragraph from modification using this:

Code: Select all

 ARichEdit.Style.TextStyles.Items[ARichEdit.CurTextStyleNo].Protection := [rvprModifyProtect];
But I just can find a way to do the same thing with a radiobutton or some others components....

Hope you can help me

- Charles
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Currently, the only way to make controls read-only is to make them disabled.
Post Reply