Solved

Moving with keys

Posted on 1997-11-16
2
201 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

726 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