Page 1 of 1

Protect content of SRichViewEdit

Posted: Mon Mar 07, 2011 7:07 pm
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

Posted: Tue Mar 08, 2011 10:47 am
by Sergey Tkachenko
Currently, the only way to make controls read-only is to make them disabled.