Solved

using the keyboard/arrow keys

Posted on 1998-04-19
2
311 Views
Last Modified: 2010-04-06
In Delphi3 I can use the keyboard arrow keys up and down by calling the events "OnKeyDown" or "OnKeyUp" or I can use "OnKeyPressed" with ASCII codes like #13 etc. I do not find a way to use the keyboard left and right arrow keys to control parameters; it seems that in Delhi these keys are not recognized. Can anyone give me a hint?
0
Comment
Question by:casal
2 Comments
 
LVL 5

Accepted Solution

by:
inter earned 100 total points
ID: 1335154
Hi,

In the KeyUp or KeyDown method of the object you interested try the following code fragment:
...
  case Key of
  VK_LEFT : Caption := 'Left';
  VK_UP : Caption := 'Up';
  VK_RIGHT : Caption := 'Right';
  VK_DOWN : Caption := 'Down';
  end;
...
Regards,
Igor
0
 

Author Comment

by:casal
ID: 1335155
Thank you IGOR !
I had an obvious programming error. Thanks to IGOR's suggestion my mistake became visible.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Syntax Check Delphi Seattle IOS app without MAC ? 1 106
Process Javascript errors with Delphi TWebBrowser 1 179
Run video youtube webbrowse 10 65
How to debug For loops? 3 57
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question