RichView no resizable and linked to another for overflow

General TRichView support forum. Please post your questions here
Post Reply
sliver80
Posts: 7
Joined: Sun Feb 05, 2006 11:04 am

RichView no resizable and linked to another for overflow

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

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