Page 1 of 1

Version 10, but still no multilanguage support

Posted: Wed Aug 13, 2008 8:16 am
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.

Posted: Wed Aug 13, 2008 8:22 am
by Marsianin
It's time to use Unicode, man.

Posted: Wed Aug 13, 2008 8:33 am
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?

Posted: Wed Aug 13, 2008 3:56 pm
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.