Using Win32 functions in Visual FoxPro Image Gallery
Keyboard Input
..msdn
ActivateKeyboardLayout
BlockInput
EnableWindow
GetActiveWindow
GetAsyncKeyState
GetFocus
GetKBCodePage
GetKeyboardLayout
GetKeyboardLayoutList
GetKeyboardLayoutName
GetKeyboardState
GetKeyNameText
GetKeyState
IsWindowEnabled
keybd_event
MapVirtualKey
RegisterHotKey
SetFocus
SetKeyboardState
ToAscii
UnregisterHotKey
VkKeyScan
Code examples:
Switching between keyboard layouts
ActivateKeyboardLayout
..msdn    Add comment     W32 Constants      Translate this page
The ActivateKeyboardLayout function sets the input locale identifier (formerly called the keyboard layout handle) for the calling thread or the current process. The input locale identifier specifies a locale as well as the physical layout of the keyboard.
Code examples:
Switching between keyboard layouts
Declaration:
HKL ActivateKeyboardLayout(
  HKL hkl,     // input locale identifier 
  UINT Flags   // input locale identifier options
);
FoxPro declaration:
DECLARE INTEGER ActivateKeyboardLayout IN user32;
    INTEGER hkl,;
    INTEGER Flags
Parameters:
hkl
[in] Input locale identifier to be activated.

Flags
[in] Specifies how the input locale identifier is to be activated.
Return value:
If the function succeeds, the return value is the previous input locale identifier. Otherwise, it is zero.
Usage:
* save current layout
hCurrentLayout = GetKeyboardLayout(0)

= ActivateKeyboardLayout(m.hLayout, 0)
My comment:
Windows 2000/XP: Activates the specified locale identifier for the entire process and sends the WM_INPUTLANGCHANGE message to the current thread`s Focus or Active window.
Word Index links for the ActivateKeyboardLayout :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-02-08 21:48:44
Modified: 2009-02-13 10:00:23
Visited in last 7 days: 40
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.247.118)
20 sec.Function: 'GetInterfaceInfo'
41 sec.Function: 'GdipGetPageScale'
1.03 min.Function: 'DeletePort'
1.38 min.Function: 'GetNamedSecurityInfo'
1.73 min.
Function group: 'Multilingual User Interface'
2.13 min.Function: 'CeRapiInit'
2.5 min.Function: 'CLSIDFromString'
2.92 min.Function: 'CloseDesktop'
3.4 min.Function: 'GetFileVersionInfo'
3.88 min.Function: 'GdipSetPathGradientCenterColor'
Google
Advertise here!