Fixed heading in TRichViewEdit?

General TRichView support forum. Please post your questions here
Post Reply
conciliator
Posts: 25
Joined: Thu Sep 17, 2009 7:50 am

Fixed heading in TRichViewEdit?

Post by conciliator »

I've read that the TRichViewEdit-component supports fixed text, e.g. fixed headers. Is this best implemented as TRVLabelItemInfo, or are there better tools for the job?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If you need to protect some text from editing, you can use Options property of the paragraph style, or Protection property of text style.
conciliator
Posts: 25
Joined: Thu Sep 17, 2009 7:50 am

Post by conciliator »

Thanks Sergey. I played around with rvprStyleProtect and the other protection styles of text style yesterday. However, what I haven't found yet is the option to have a piece of text living on a line of its own. In other words, I'm able to insert text before and after the protected text while on the same line. Is there an option suitable for my needs? Should I go with a paragraph style, and treat the heading as a single paragraph?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Yes, if you do not want allowing adding before and after the text, you need to protect the whole paragraph.
(another alternative, using "sticking" protection options, is not what you need, as far as I understand)
conciliator
Posts: 25
Joined: Thu Sep 17, 2009 7:50 am

Post by conciliator »

Thats correct. I got it working by protecting an entire paragraph.
Post Reply