Page 1 of 1

Moving richviewedit value to richview.

Posted: Thu Sep 22, 2011 4:52 am
by mande
Hi!

Can you show me how in chat program, when user fills richviewedit with text and graphic(bmp,png,jpg) and sends message, this value of richviewedit will be also shown in richview. How to move richviewedit value to richview?
There examples of using, but are all in Delphi, I need in C++ Builder 6.

Thank you!

Posted: Fri Sep 23, 2011 8:18 pm
by Sergey Tkachenko
If you need to copy document from one TRichView to another, the best solution is Source.SaveRVFToStream, Dest.LoadRVFFromStream.

However, RVF contains many additional information, so if you need to send information via a network/Internet, it's better to invent your own format.
An example is shown in http://www.trichview.com/forums/viewtopic.php?t=63
The examples are on Delphi, but we plan to convert them to C++Builder soon.
Unfortunately, the format used in that demo does not support graphics (except for emoticons that encoded as a plain text). So you need to extend this format yourself.

Or, if network traffic is not an issue, use RVF format as I said at the beginning.