Solved

Moving with keys

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now