RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TScreen.DefaultKbLayout Property

Indicates the Windows handle to the keyboard layout that was active when the application started running.

Pascal
property DefaultKbLayout: HKL;
C++
__property HKL DefaultKbLayout;

Use DefaultKbLayout for making Windows API calls that require a handle to a keyboard layout. For example, if an application changes the keyboard layout to match the settings for another country, the value of DefaultKbLayout can be used as a parameter to the Windows ActivateKeyboardLayout function in order to restore the original layout. 

For asian keyboards, the keyboard layout identifies the input method editor (IME) as well as the default language. Use DefaultKbLayout in Windows API calls that work with the IME. DefaultKbLayout is the keyboard layout handle associated with the IME named by the DefaultIme property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!