Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips


#9: How can I switch a keyboard layout in code?

If you want to change a current keyboard layout, you can:

1. var lang: HKL;
    lang := LoadKeyboardLayout(pcKeyboard, 0);
    SetActiveKeyboardLayout(lang);

2. LoadKeyboardLayout(pcKeyboard, KLF_ACTIVATE);

where pcKeyboard is:
 '00000409' - english
 '00000419' - russian
 '00000422' - ukrainian
 '00000407' - german
 '0000040C' - french
 '00000410' - italian
 '00000416' - portuguese
 '0000040A' - spanish
... (for more information view a language consts in windows.pas)


Published: August 9, 1999

See also
 
Paradox ActiveX
SMImport suite
Viewer for TNEF-files (winmail.dat)
SMExport suite
ABA Spreadsheet Convert
Excel Web-stream
Paradox to MS Access converter
SMMsg suite
Word Web-stream
Paradox Viewer
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2025, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMReport Autogenerated