TRichViewEdit - Copy

General TRichView support forum. Please post your questions here
Post Reply
Graham
Posts: 64
Joined: Sun Jan 27, 2013 7:51 pm
Location: Berkshire U.K.

TRichViewEdit - Copy

Post by Graham »

What is the best way to copy the entire contents of one RichViewEdit to another?

Saving to a memory Stream and then loading seems to work.

rve1.AppendFrom(rve0]) works, but Bullet points seem to erroneously take on the contents of one of my ImageLists
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Saving and loading to stream as RVF.
AppendFrom works only for basic documents, it may be considered as an obsolete method.
Graham
Posts: 64
Joined: Sun Jan 27, 2013 7:51 pm
Location: Berkshire U.K.

Post by Graham »

Yes, that seems to be OK. I think a lot of my other problems are about to go away as well now. In order to open several documents at the same time I had an array of TRichViewEdit. Each element having its own style. This generally worked but seems to get some odd effects. Now I have one RichViewEdit and an array of MemoryStreams.
Post Reply