Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Character Set

Status
Not open for further replies.

bearsite4

Programmer
Sep 29, 2001
79
AU
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.
 
Hi Bearsite4

This is from the Help (D3) is this what you mean

"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_).

'Printscreen' posted 14/11/2001 (page 4)

Hope this helps
Steve



 
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.
 
Hi Bearsite

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;

Hope this helps Steve.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top