Locked text

General TRichView support forum. Please post your questions here
Post Reply
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Locked text

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Locked text

Post 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)
jgkoehn
Posts: 303
Joined: Thu Feb 20, 2020 9:32 pm

Re: Locked text

Post 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
Post Reply