Microsoft KB Archive/258841

= KybdStck.exe Manipulates the Keyboard Layout Stack from Visual FoxPro =

Article ID: 258841

Article Last Modified on 8/9/2004

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q258841



SUMMARY
KybdStck.exe is a sample that demonstrates how to use API functions to navigate through the Keyboard Layout Stack that is used for multi-language support.



MORE INFORMATION
The following file is available for download from the Microsoft Download Center:

KybdStck.exe

Release Date: Apr-12-2000

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. CAUTION: You must have multi-language support enabled to run this sample form effectively. For more information on enabling multi-language support, please see the &quot;References&quot; section.

After downloading and unzipping KybdStck.exe to a temporary directory, run the form KybdStck. The list box is populated with any loaded Keyboard Layouts. Clicking on a language sets the keyboard layout to that language. Clicking on the button at the bottom of the form displays the currently selected layout.

This form demonstrates the following points:
 * The Init event of the list box uses the GetKeyboardLayoutList function to get the number of Keyboard Layouts loaded. It also uses the GetKeyboardLayoutName and ActivateKeyboardLayout functions to generate a list of the loaded layouts.
 * The click event of the command button uses the GetKeyboardLayoutName function to get the name of the currently loaded layout.
 * The click event of the list box uses the ActivateKeyboardLayout function to set the layout to the selected language.

