Page 1 of 1

Fixed heading in TRichViewEdit?

Posted: Tue Nov 24, 2009 1:58 pm
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?

Posted: Tue Nov 24, 2009 5:08 pm
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.

Posted: Wed Nov 25, 2009 7:14 am
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?

Posted: Wed Nov 25, 2009 6:41 pm
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)

Posted: Wed Nov 25, 2009 7:39 pm
by conciliator
Thats correct. I got it working by protecting an entire paragraph.