[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

using the keyboard/arrow keys

Posted on 1998-04-19
2
Medium Priority
?
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

649 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