The problem (dynamic transition) is solved with ActivateKeyboardLayout , but it still persists when I dynamically create a component in the form (e.g. TEdit). When this component comes into focus, the language changes to the default value. I tried using ActivateKeyboardLayout again after creating the components, but this did not work. Any ideas?
you must use "Windows" first, then you can use this method: ActivateKeyboardLayout (EnglishLayoutHandle, KLF_ACTIVATE) you can change "EnglishLayoutHandle" for any language you want
Your problem may be similar to this question .
Otherwise, this code does this:
keybd_event(VK_MENU, 0, 0, 0); keybd_event(VK_SHIFT, 0, 0, 0); keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0 ); keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP, 0);
Source: https://habr.com/ru/post/1343133/More articles:dbms_xmlgen.getxml - How to set the date format - databaseAutofac: performance tips for using DynamicProxy? - performanceUIWebView not loading new url - iosIdea for an implicit context sensitive statement. (period) as syntactic sugar - syntaxusing Selenium 2 / Web Driver with C # - c #subtract columns in table using LINQ - c #Xcode 3 - Xcode 4 Migrating Snapshots - version-controlcakephp two foreign keys in one table - databaseLINQ query syntax for method syntax - linqExiting beanstalkd - beanstalkdAll Articles