Page 1 of 1

Locked text

Posted: Thu Jan 27, 2022 7:10 pm
by jgkoehn
I am pasting text from another TRichViewEdit or TRichView but when I paste it into my TRichViewEdit it is not editable.
Ideas? Is there a way that the text could be locked?

Re: Locked text

Posted: Thu Jan 27, 2022 8:12 pm
by Sergey Tkachenko
Text cannot be edited if:
- TRichViewEdit.ReadOnly = True
- this is not a text but label item
- style of this text has protection options (especially rvprModifyProtect and rvprDeleteProtect)
- style of paragraph of this text has protection options
- if this text is in a table, a table can be protected from editing (rvtoEditing is excluded from table.Options)

Re: Locked text

Posted: Thu Jan 27, 2022 9:53 pm
by jgkoehn
Thanks Sergey,
That helps. So basically if the text is protected.
I need to remove protection from one or all of the following areas.
1. Style of Text
2. Style of paragraph
3. Style of Table