Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CONTROLLING KEYS

Posted on 1997-06-19
4
Medium Priority
?
144 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
[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
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
icampbe1 earned 400 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

609 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