?
Solved

Moving with keys

Posted on 1997-11-16
2
Medium Priority
?
202 Views
Last Modified: 2010-04-04
Hello,
I use Delphi1.0 (unluckily). I have a form with several buttons and images. Now, I draw a big rectangle and a small circle. I want to move the circle around the rectangle. If I do it with buttons in the form, it's ok. But when I try to make moving with keys e.g. like a, w, x or the arrows, nothing happens.
Where's the trick? Please help,

Adam.
0
Comment
Question by:adamw14
[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
 

Expert Comment

by:mes
ID: 1350658
Can you show me your source?
0
 
LVL 1

Accepted Solution

by:
titz earned 50 total points
ID: 1350659
in the ONKEYUP-Method you have to check wether the correct
key ist pressed (e.g. a or x) . If so, you can move your circle.
That's all.
Good luck.
titz
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

801 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