Page 1 of 1

how to cotinuous display and no word wrap

Posted: Thu Nov 14, 2013 5:05 am
by wangfeie
When editing in the editor with the chinese, It will word wrap and no continuous display . how to cotinuous display and no word wrap?

Posted: Thu Nov 14, 2013 10:13 am
by Sergey Tkachenko
You can assign RVStyle.LineWrapMode=rvWrapAnywhere, but it affects all text.

Posted: Wed Dec 25, 2013 1:33 am
by kisshexuxia
Sergey Tkachenko wrote:You can assign RVStyle.LineWrapMode=rvWrapAnywhere, but it affects all text.

[Chinese]
When I Set RVStyle.LineWrapMode=rvWrapAnywhere.
Then Punctuation marks will be in the first place and On the right is not aligned with the space¡£
In Word will be aligned £¬There is no space, word spacing adjustment
http://d.pcs.baidu.com/thumbnail/de81fb ... uality=100

Posted: Thu Dec 26, 2013 8:47 am
by Sergey Tkachenko
Yes, "wrap anywhere" option is not recommended for real languages, it was designed for using in something like emulation of LED displays.

Sorry, I cannot see your link, it displays 403 error.

But may be I do not understand your question.
If you want to disable wrapping for this paragraph at all (display it as a single line), us a paragraph style with rvpaoNoWrap included in Options property. In RichViewActions, there is a "Word Wrap" command to disable/enable wrapping.

If you use Unicode to display Chinese text, TRichView must wrap Chinese text correctly - it implements line breaking algorithm following by the Unicode.org recommendations. Text is in Unicode by default in Delphi 2009 or newer.
If you do not use Unicode... Then you should have many problems in TRichView, because it does not support DBCS completely.

Posted: Fri Dec 27, 2013 3:23 am
by kisshexuxia
Sergey Tkachenko wrote:Yes, "wrap anywhere" option is not recommended for real languages, it was designed for using in something like emulation of LED displays.
....
I don't Want to display it as a single line.

With Chinese When the Last Is punctuation , The Line is automatic branch.

But the top row of the right margin is not aligned¡£

Sorry The Image is bad.I will Send Email To You with a DEMO Again.

Posted: Fri Dec 27, 2013 4:55 pm
by Sergey Tkachenko
I received your email.
As I understand, you want to justify Chinese text to the both sides by increasing increasing character spacing instead of increasing width of space characters. Sorry, it is not supported yet.

Posted: Mon Dec 30, 2013 3:00 am
by kisshexuxia
Sergey Tkachenko wrote:I received your email.
As I understand, you want to justify Chinese text to the both sides by increasing increasing character spacing instead of increasing width of space characters. Sorry, it is not supported yet.
Thank you very much.
What can support?
Or How Can I Modify Soures £¿

Posted: Mon Dec 30, 2013 10:48 am
by Sergey Tkachenko
If it would be simple, it would be already implemented.
I highly do not recommend to modify source code - you will have problems with updates.

Justification is implemented in FinishScreenLine (in addition to applying line spacing and rearranging according to bidimode). But even if you calculate character spacing for justification, there is no field where you can store it.

Posted: Tue Dec 31, 2013 3:09 am
by kisshexuxia
Sergey Tkachenko wrote:If it would be simple, it would be already implemented.
I highly do not recommend to modify source code - you will have problems with updates.

Justification is implemented in FinishScreenLine (in addition to applying line spacing and rearranging according to bidimode). But even if you calculate character spacing for justification, there is no field where you can store it.
Thank You
Plesae Send me simple or Link.