Question about Compilers & Programming Tools
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.
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
Tips for a great answer:
Sep 24, 2013 | Borland Delphi 8 for PC
Jul 30, 2012 | Borland Turbo C++ 4.5 Full Version for PC
Mar 24, 2011 | Borland Turbo C++ 4.5 Full Version for PC
Feb 16, 2011 | Borland Turbo C++ 4.5 Full Version for PC
Mar 03, 2010 | Borland Delphi 2005 Professional
Jan 27, 2010 | Borland Delphi Studio Enterprise 7 Upgrade...
Nov 07, 2009 | Borland DELPHI 7 ENT SA (HDE0000WWSA000)
Sep 17, 2009 | Compilers & Programming Tools
Sep 09, 2009 | Compilers & Programming Tools
Sep 02, 2009 | Borland STARTEAM 5.2 NAMED MAINT...
Oct 06, 2016 | The PHP Group PHP
332 people viewed this question
Usually answered in minutes!
Step 2: Please assign your manual to a product: