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.
Version 10, but still no multilanguage support
-
- Posts: 3
- Joined: Wed Aug 13, 2008 7:58 am
Version 10, but still no multilanguage support
Last edited by Ion Silvestru on Wed Aug 13, 2008 8:38 am, edited 1 time in total.
-
- Posts: 3
- Joined: Wed Aug 13, 2008 7:58 am
Yes, I know about Unicode.Marsianin wrote:It's time to use Unicode, man.
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?
-
- Site Admin
- Posts: 17566
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.