Page 1 of 1

TRichViewEdit - Copy

Posted: Wed Feb 20, 2013 5:52 pm
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

Posted: Thu Feb 21, 2013 3:39 pm
by Sergey Tkachenko
Saving and loading to stream as RVF.
AppendFrom works only for basic documents, it may be considered as an obsolete method.

Posted: Thu Feb 21, 2013 4:05 pm
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.