Solved

Moving with keys

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

697 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