Solved

CONTROLLING KEYS

Posted on 1997-06-19
4
125 Views
Last Modified: 2010-04-04
Now this seems to be a very serious problem. I'm trying to control all keys in D3. That means I have to catch all the keys that were pressed in my program (and that is eg. ScrollLock, ESC, Tab etc.) but not to let, if don't want to, to know the program that the key was pressed. For instance if I press TAB I want do some action and I don't want the program to skip to another TabEnbled component? Please, help me. What should I do? Is it possible? I hope so.
Thanks Jakub.
0
Comment
Question by:jakubklos
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 100 total points
ID: 1337252
Set the forms 'KeyPreview' property to TRUE.   Then you can perview the and process the keys you want.  The help is pretty clear on this.
0
 

Author Comment

by:jakubklos
ID: 1337253
I'll give it a go and then grade.
0
 

Author Comment

by:jakubklos
ID: 1337254
It sounds great now if I read it again, I grade it with excellent.
0
 

Author Comment

by:jakubklos
ID: 1337255
It didn't exactly fix the problem. I need for example, if a component is focused and I press TAB it doesn't move to another component and I get this request. You know what I mean? Looks like I need to do some key handler of the component (but I've never done that yet). What do you think?
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
Simple Delphi Question 9 77
Printing problem 2 73
Delphi XE10 Round Image 2 53
Convert MS Word document to a PDF file 9 33
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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

10 Experts available now in Live!

Get 1:1 Help Now