Page 1 of 1

Pretecting areas.

Posted: Wed Mar 26, 2014 7:46 am
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

Posted: Thu Mar 27, 2014 11:45 am
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

Iterating through SRV controls

Posted: Fri Apr 18, 2014 10:54 pm
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.