Version 10, but still no multilanguage support

General TRichView support forum. Please post your questions here
Post Reply
Ion Silvestru
Posts: 3
Joined: Wed Aug 13, 2008 7:58 am

Version 10, but still no multilanguage support

Post by Ion Silvestru »

By multilanguage support I mean changing the language from the Windows Language Bar (raskladka klaviatury), then typing in TRichView.

As a suggested solution: TRichView must change Font Script (Charset) when input language change, accordingly with wParam of WM_INPUTLANGCHANGE (character set of the new locale) http://msdn.microsoft.com/en-us/library ... S.85).aspx.

Steps to reproduce:
1. Open Actiontest.exe with readme.rvf loaded;
2. Change language (from Windows Language Bar) to RU (Russian);
3. Type some text in the first line (Web location). You will see text from Western Charset, not russian text.

Thank you for this great Delphi component.
Last edited by Ion Silvestru on Wed Aug 13, 2008 8:38 am, edited 1 time in total.
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Post by Marsianin »

It's time to use Unicode, man.
Ion Silvestru
Posts: 3
Joined: Wed Aug 13, 2008 7:58 am

Post by Ion Silvestru »

Marsianin wrote:It's time to use Unicode, man.
Yes, I know about Unicode.

My question was about TRichView incorrectly (incompletely) handling WM_INPUTLANGCHANGE message.

From real life: when you change input language in Word or OpenOffice Writer, you type & view text correctly, and you don't need to find from which menu/dialog to change the correct Charset for typed text.

Or we need to provide in our applications WM_INPUTLANGCHANGE message handling?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) First, I really recommend to use Unicode in TRichViewEdit, and forget about all charsets and WM_INPUTLANGCHANGE ( http://www.trichview.com/forums/viewtopic.php?t=70 )

2) If you, for some reasons, do not want to use Unicode, you can include rvoAutoSwitchLang in RichViewEdit.EditorOptions. With this option, RichViewEdit will handle WM_INPUTLANGCHANGE. But since this message is sent to the window having the input focus, you need to change language when the caret is inside the editor.
Post Reply