how send style

General TRichView support forum. Please post your questions here
Post Reply
gbg
Posts: 37
Joined: Sun Apr 11, 2010 4:55 pm

how send style

Post by gbg »

i create local messender
how i can send style and text to reciver :roll:
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Well, you can send data in RTF or RVF format, but it is not recommended, because these formats add too many additional information to text, and traffic will be increased.

I recommend to invent some simple language to encode formatted text.
For example, it can be like in this forum, e.g. [b]bold text[/b], or invent your own codes.
Example is here: http://www.trichview.com/forums/viewtopic.php?t=63
In this example, codes are typed in TEdit (with preview in TRichView).
If you want an example where formatted text is typed in TRichViewEdit, let me know, I'll create a demo.
gbg
Posts: 37
Joined: Sun Apr 11, 2010 4:55 pm

Post by gbg »

already i see this link
I do not want edit and show preview this is clumsily
if i use save rtf in streem and send it is send too many bytes

sorry for bad English
gbg
Posts: 37
Joined: Sun Apr 11, 2010 4:55 pm

Post by gbg »

how i can convert rtf text to BBCode?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I created a new demo:
http://www.trichview.com/forums/viewtop ... 5352#15352

This demo uses the same codes as the previous demo, but message is typed in TRichViewEdit.
gbg
Posts: 37
Joined: Sun Apr 11, 2010 4:55 pm

Post by gbg »

thanks very useful for me
:D
Post Reply