Solved

CONTROLLING KEYS

Posted on 1997-06-19
4
137 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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