IntroductionThis page presents two programs that may be usefull in programming.
KeystrokeThis program shows the code generated when a combination of keys is pressed.
The keydown event generates a (16 bit) word when a key is pressed.
The keyup event generates a word when a key is released.
The keypress event generates an 8 bit character code when a key is pressed.
Below is a picture of the program at work
download keystroke exe file
download keystroke project
FonttestThis program shows how Windows renders a character on the screen.
Individual pixels are enlarged 10 times, to show the details.
Below is a picture of the program
The transparent checkbox is equivalent to the statement ....canvas.brush.style := bsClear
Interesting (or shocking) may be the next picture, where italic is selected with transparent off.
The boundaries of the character as obtained with the statements
download fonttest exe file
download fonttest project