Page 1 of 1
how send style
Posted: Sun Apr 11, 2010 5:01 pm
by gbg
i create local messender
how i can send style and text to reciver
Posted: Sun Apr 11, 2010 6:29 pm
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.
Posted: Sun Apr 11, 2010 7:05 pm
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
Posted: Tue Apr 13, 2010 8:00 pm
by gbg
how i can convert rtf text to BBCode?
Posted: Thu Apr 15, 2010 12:20 pm
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.
Posted: Fri Apr 16, 2010 11:57 am
by gbg
thanks very useful for me