|
|
Delphi programming utilities |
|
|
Introduction
This page presents two programs that may be usefull in programming.
Keystroke
This 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
Click on the download (lightning) logo below to load the program or the complete Delphi-3 project
download keystroke exe file
download keystroke project
Fonttest
This 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 red dot has the (x,y) coordinates of the statement ....canvas.textout(x,y,......)
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
...canvas.textheight("f")
...canvas.textwidth("f")
are violated severily.
Click on the download logo's below to load the fonttest program or the complete Delphi-3 project
download fonttest exe file
download fonttest project
|
|