Pretecting areas.

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
TonyBlom
Posts: 14
Joined: Sun Dec 15, 2013 12:17 pm

Pretecting areas.

Post by TonyBlom »

I wish to protect areas of text. The idea is to create a template with SRV Controls on it including Memo etc. I want to protect most things except for the Controls. Is this possible ?

Thank you
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can protect the whole document by assigning editor.ReadOnly := True.

Also, you can protect paragraphs, see Options property of a paragraph style: http://www.trichview.com/help/idh_tcust ... tions.html
However, protected paragraphs can be deleted as a whole (unless they have undeletable items)

You can protect a text item, see Protection property of a text style: http://www.trichview.com/help/idh_tcust ... ction.html

You can protect a non-text item from deletion, see rvepDeleteProtect property: http://www.trichview.com/help/idh_type_ ... perty.html
TonyBlom
Posts: 14
Joined: Sun Dec 15, 2013 12:17 pm

Iterating through SRV controls

Post by TonyBlom »

Could you give me a short example of how to iterate all the SRV controls on a Doc.
My idea is to make the Document itself read only, but allow the user to interact using SRV controls.

To do this I need to iterate through all the controls setting them read only.
ALso I will want to bind some of the SRV controls to DB field content.

A short example how to iterate through the SRV controls would be very helpful.

Thank you.
Post Reply