Computers & Internet Logo

Related Topics:

Question about Computers & Internet

1 Answer

Keyboard functions in Delphi

I wrote a program in Borland Delphi. Hangman. I would like to know how I can make it possible for the user to click on the "A" key on the keyboard and let the program choose that image and fill in the letter the user choose without the user having to click on the image.

Posted by Peppercat on


1 Answer


  • Level 1:

    An expert who has achieved level 1.


    An expert that has over 10 points.


    An expert whose answer got voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 11 Answers

In Delphi, the form, and many controls have events for key presses OnKeyDown, OnKeyPress, OnKeyUp, etc. the Key is passed in as a Word value, but when cast with the ?Chr(Key)? function it will be come a Character from the keyboard. As for writing the text out to the screen, TextRect(Rect: TRect; X, Y: Integer; const Text: string); will let you write the text anywhere on your canvas that you want to and that should get you started. Good Luck

Posted on Oct 01, 2007


Add Your Answer


Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:


Can I use my Borland Delphi 5 CD for installing Delphi 5 on my new Windows 7 computer

This is the last version of Borland dBASE for Windows (next version is Visual dBASE 5.5).

This is VERY unlikely to work as it was designed for much earlier operating systems.

Windows 7 is a very different architecture - maybe it time to upgrade.


You can download the software from the following link:
Please rate this solution. Regards.

Delphi 6 If user in runtime check the checkbox-How checkbox stay checked when user run the program next time?

You must examine and save the status of the checkbox, either to a file (perhaps an INI file, or a TXT file, or as a structured binary file) or to a database. The point is, when the program ends, so also ends any information about the state of the program--unless YOU save that information, at run-time, somewhere outside of the program (i.e., not just in a variable in the program). Then, of course, when the program is executed again, you must also have code that reads that external file or database, so that you can, at run-time, set that checkbox to the state it was in last time.

The same is true about saving other information: edit box text, location on the screen of the program window (form), anything at all.

I was worked on delphi in 2003 for 10 months, now i want to take a hand on delphi which book i should read and where can i get the delphis free version

You shoud use marco cantu's book for various delphi versions.
Please see

The free trial versions of latest delphi development environmets from

Hope this helps. Feel free to ask if you need any further knowledge.



Ultimate windows 7. ''the program cannot start because your missing rtl100bpl''

You are probably using a program built with Delphi, and somehow it's missing the Borland Programming Language (BPL) Run-Time Library 1.00. Hence, "rtl100.bpl".

If this is the case, download any Delphi runtime package - for example this one:

and find inside the RTL100.BPL file. Unpack it in the C:\WINDOWS\SYSTEM32 folder, and that should be it.

Where i can get software for C Programing language and what is the software name...........?

STEP 1 : Download the Borland Compiler
STEP2 : Run the setup program
By default, it should install everything to C:\Borland\BCC55

STEP 3 : Add the /bin directory to the system PATH

>C:\Borland\BCC55\bin\bcc32 OR >c32

After the setup program is run (step 2), a whole bunch of executable programs are placed in a new directory : C:\Borland\BCC55\Bin. This step makes it possible for the Operating System (Windows) to find these new executables by name. If you don't do this, then you will need to specify the full path to bcc32 every time you use it.

To do this on Windows XP
Bring up the Environmental Variables :

•Right Click "My Computer" ( Depending on how your system is set-up, "My Computer" is either on your Desktop or in your Start Menu )
•Select "Properties"
•Activate the "Advanced" Tab
•Click the "Environmental Variables" Button
Append ";C:\Borland\BCC44\bin" to the PATH variable (figure 3-2)

•Select the PATH variable under User Variables
Note: The PATH variable may appear under both System Variables and User Variables. This How-To changes the User Variable.
•Click the EDIT button below the list
•In the "Edit User Variable" box that pops up, move the cursor to the end of the Variable Value field
•Add a semi-colon ";" to the end of the current value
Note: If the value is empty, then you do not need to add a semi-colon
•Add the path "C:\Borland\BCC55\bin" after the semi-colon
•"OK" your way out of the dialogs

STEP 4 : Set up some configuration files
you should create a configuration file for the bcc32 program that tells it where to find its libraries and include files.
•The file should be named bcc32.cfg
•It should be placed in the same bin directory where bcc32.exe is located
•The contents of the file are the command line options for bcc32 stating the location of include files and libraries:


Windows Vista is incompatible with delphi 7.0. Is

not really pal this is why vista is rubbish upgrage to 7 or downgrade to xp windows 7 lets you run xp .exe on it but vista never had the option to do this because its rubbish have alook around i think on rapidshare there is a download link for windows 7
Not finding what you are looking for?


Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts


Level 3 Expert

13435 Answers

Brad Brown

Level 3 Expert

19008 Answers

Cindy Wells

Level 3 Expert

6450 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides