Moving richviewedit value to richview.

General TRichView support forum. Please post your questions here
Post Reply
mande
Posts: 1
Joined: Wed Sep 21, 2011 10:55 am

Moving richviewedit value to richview.

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

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