Vcl.Forms.TScreen.DefaultKbLayout

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DefaultKbLayout: HKL read FDefaultKbLayout;

C++

__property HKL DefaultKbLayout = {read=FDefaultKbLayout, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TScreen

Description

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

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.

See Also