I was wondering if anyone knew where I could get a table of the character set richedit components use. It's not ascii for sure. When I call the keyup method it seems to be using some weird character set.
"The TKeyEvent type points to a method that handles keyboard events. The Key parameter is the key on the keyboard. For non-alphanumeric keys, you must use WinAPI virtual key codes to determine the key pressed. For more information, search for VkKeyScan and VkKeyScanEx in the Win32 Developer's Reference (WIN32.HLP)."
There have been some recent posts on finding a list of the Virtual keycodes (VK_).
Actually, I was after the codes for just plain old normal keys. For example, the keyup has a key:word parameter (something like that) which registers the letter 'A' as a different number than the asci. I've tried using a loop to print all the numbers from 10-255 but it displays it as asci when I do.
I am not quite with you as I just tried this and the 'A/a' key returned 65 which is ASCII 'A' but not 'a' is this what is causing the confusion.?
You can get the correct lower Case value by setting bit 5 of the Key value and testing shift when you read the value of Key.
e.g.
if not shift = ssShift then
Key := Key or $20;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.