Protect content of SRichViewEdit
Posted: Mon Mar 07, 2011 7:07 pm
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:
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
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];
Hope you can help me
- Charles