Psoft.sk
Title
PSOFT Delphi,Kylix & C++ Builder components and Windows, Linux applications.
Description
First time at this site? START HERETutorials and Online CoursesTDBGrid - Tips, Tricks and TweaksFree Source Code (to learn from)Tips, Tricks and Code Snippets
Among the various RAD facilities that Delphi offers is a visual builder for graphical user interfaces (GUIs). This greatly simplifies the building of a user interface and allows the programmer to concentrate on programming. Adding a second form to a project, programmatically creating and freeing a form, and more...
How to Translate a Virtual Key Code to a Character
TIPS :: Windows defines special constants for each key the user can press. The virtual-key codes identify various virtual keys. In Delphi, the OnKeyDown and OnKeyUp events provide the lowest level of keyboard response. To use OnKeyDown or OnKeyUp to test for keys the user presses, you must use Virtual key codes to get the key pressed. Here's how to translate the virtual key code to the corresponding Windows character.