Solved

Moving with keys

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
loading dll from external path 1 197
Simple Delphi Question 9 77
Intraweb download file link ? 1 88
Run video youtube webbrowse 10 45
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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

21 Experts available now in Live!

Get 1:1 Help Now