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 on

Ad

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    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

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
A 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
The service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
Good luck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

2 Answers

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.

Mar 10, 2011 | Borland DBASE 5.0 Upgrade Version Academic...

1 Answer

HOW CAN I DOWNLOAD BORLAND DELPHI 7 PROGRAM?


Hi,
You can download the software from the following link: http://www.brothersoft.com/delphi-76437.html
Please rate this solution. Regards.

Nov 02, 2010 | Computers & Internet

1 Answer

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.

May 22, 2010 | Borland Delphi® 2006 Enterprise Upgrade...

1 Answer

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


Hi,
You shoud use marco cantu's book for various delphi versions.
Please see http://www.marcocantu.com.

The free trial versions of latest delphi development environmets from
https://downloads.embarcadero.com/free/delphi

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

Regards.

Jan 27, 2010 | Borland Delphi Studio Enterprise 7 Upgrade...

1 Answer

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:

http://www.lexically.net/downloads/version5/base1a.zip

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

Jan 06, 2010 | HP Pavilion M9040N Elite Desktop PC

1 Answer

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


STEP 1 : Download the Borland Compiler
https://downloads.embarcadero.com/item/24778
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
(C:\Borland\BCC55\Bin)
•The contents of the file are the command line options for bcc32 stating the location of include files and libraries:
-I"C:\Borland\BCC55\Include"
-L"C:\Borland\BCC55\Lib"
Regards,

Soul_srch007

Dec 06, 2009 | Microsoft Windows XP Professional

1 Answer

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

Nov 07, 2009 | Borland DELPHI 7 ENT SA (HDE0000WWSA000)

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

333 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18424 Answers

Doctor PC
Doctor PC

Level 3 Expert

7733 Answers

David Payne
David Payne

Level 3 Expert

14162 Answers

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

Answer questions

Manuals & User Guides

Loading...