JCL Help:TJclKeybLayoutFlag

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Set of flags which describe how to load, unload or activate an input locale identifier.[Description]


Pascal

 public TJclKeybLayoutFlag = (
klReorder,
klUnloadPrevious,
klSetForProcess,
klActivate,
klNotEllShell,
klReplaceLang,
klSubstituteOK
);
TJclKeybLayoutFlags = set of TJclKeybLayoutFlag;


Members

Members Description
klReorder Moves the specified input locale identifier to the head of the input locale identifier list, making that locale identifier the active locale identifier for the current thread. This value reorders the input locale identifier list even if KLF_ACTIVATE is not provided.
klUnloadPrevious Unsupported.
klSetForProcess This flag is valid only with KLF_ACTIVATE. Activates the specified input locale identifier for the entire process and sends the WM_INPUTLANGCHANGE message to the current thread's Focus or Active window. Typically, LoadKeyboardLayout activates an input locale identifier only for the current thread. This flag is only supported for Windows 2000.
klActivate If the specified input locale identifier is not already loaded, the function loads and activates the input locale identifier for the current thread.
klNotEllShell Prevents a ShellProc hook procedure from receiving an HSHELL_LANGUAGE hook code when the new input locale identifier is loaded. This value is typically used when an application loads multiple input locale identifiers one after another. Applying this value to all but the last input locale identifier delays the shell's processing until all input locale identifiers have been added.
klReplaceLang If the new input locale identifier has the same language identifier as a current input locale identifier, the new input locale identifier replaces the current one as the input locale identifier for that language. If this value is not provided and the input locale identifiers have the same language identifiers, the current input locale identifier is not replaced and the function returns NULL.
klSubstituteOK Substitutes the specified input locale identifier with another locale preferred by the user. The system starts with this flag set, and it is recommended that your application always use this flag. The substitution occurs only if the registry key HKEY_CURRENT_USERKeyboard LayoutSubstitutes explicitly defines a substitution locale. For example, if the key includes the value name "00000409" with value "00010409", loading the U.S. English layout ("00000409") causes the Dvorak U.S. English layout ("00010409") to be loaded instead. The system uses KLF_SUBSTITUTE_OK when booting, and it is recommended that all applications use this value when loading input locale identifiers to ensure that the user's preference is selected.


Description

Set of flags which describe how to load, unload or activate an input locale identifier. It is used by the TJclKeyboardLayout and TJclKeyboardLayoutList classes.


About

Unit

JclLocales


Navigation

no pages or subcategories

Donator

Petr Vones


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page