User can not select Chinese text precisely by mouse

General TRichView support forum. Please post your questions here
Post Reply
wolf1860
Posts: 63
Joined: Sat Nov 21, 2015 2:04 am

User can not select Chinese text precisely by mouse

Post by wolf1860 » Tue Jul 09, 2019 2:21 am

Everything is right when select English text.When select Chinese text,the selection will auto expand to the start of the line.I think the cause is the word seperator is different.Here is the test Chinese text.
我曾经一度认为自己不是我爸的亲儿子,这个孩奴盛行的年代,哪个父亲舍得把亲儿子先送去特警学院摸爬滚打四年,出来后又动用关系分配到安全局行动队?
“多年以后你会感谢我,让你有了一个独立的灵魂。”他如此对我说。
“想出人头地也好,想低调生活也罢,你已经有了这个资格。如此,我也就放心了。”这是他失踪前发给我的信息。
夜晚,海滨小城乳山。

Sergey Tkachenko
Site Admin
Posts: 14550
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: User can not select Chinese text precisely by mouse

Post by Sergey Tkachenko » Tue Jul 09, 2019 11:40 am

You can disable word selection completely by assigning rvsmChar to RVStyle.SelectionMode. Unfortunately, you cannot disable it for Chinese text but enable for English text.
But even with word selection, it is possible to select precisely: if you shrink the selection (while selecting, move the mouse back to the point when the selection is started), then you will be able to select necessary characters.

Post Reply