Page 1 of 1

RichView no resizable and linked to another for overflow

Posted: Sun Feb 05, 2006 11:13 am
by sliver80
hi, i'm using TRichView for BCB6.

I need to create a RichView that have pre-setted dimension with no horizontal and vertical scrollbar, in wich load from file a text to put in until it can be fitted.
the remaining overflow text must go to another RichView, and another, another until all text of file is putted.

how could i do ?

thanks and sorry for my bad english :D

Posted: Sun Feb 05, 2006 9:32 pm
by Sergey Tkachenko
There is no direct solution for this.

Removing scrollbars - set HScrollVisible and VScrollVisible to False.
Changing height to document width - use DocumentHeight property (it does not include a double border width)

I believe, you can add document paragraph by paragraph, using FormatTail to reformat newly added paragraph. If DocumentHeight exceeds the specified value, delete the last added paragraph (DeleteParas) and proceed with next RichView.