Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Feb : Virtual-Key Codes

www.cryer.info
Managed Newsgroup Archive

Virtual-Key Codes

Subject:Virtual-Key Codes
Posted by:"Andrew Jameson" (softspotsoftwareno@spamgmail.com)
Date:Sat, 25 Feb 2006 14:24:38

I need to be able to convert the ScanCode associated with the keydown event
of a TEdit into it's equivalent ASCII code for a given keyboard language.
In essence, for only one edit box, I need to emulate input from say a
Russian / Czech / Polish keyboard ... how would this best be achieved ?  I
could simply create a lookup table of ScanCodes and Ascii codes for each
language but I'd guess this type of functionality is built in and there
should be appropriate APIs ?  I've looked at ToAsciiEx but this presumes
that I've used LoadKeyboardLayout which I'd like to avoid as I see no need
to have to actually reassign the keyboard.

Andrew

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive