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

x
?
Solved

Can I get my component to capture a keypress when it does not have focus?

Posted on 2004-04-28
5
Medium Priority
?
258 Views
Last Modified: 2010-04-05
I am writing a graphical component (based on TCustomPanel) that needs to be able to capture and respond to the escape key being  pressed even though the component does not have focus. I have heard that this is possible. Any help would be greatly appreciated!
0
Comment
Question by:gibbm01
[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
5 Comments
 
LVL 3

Expert Comment

by:MikProg
ID: 10946024
Look into  "04/21/2004 130 Disable Windows key ?  " solution
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 10946136
Take a look at:
http://experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20965899.html
It is about TCustomPanel, but the way is the same....
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10946606

   you can also check TCustomForm.KeyPreview propery in the help ...
0
 

Accepted Solution

by:
meadorj earned 1000 total points
ID: 10951590
0
 
LVL 12

Expert Comment

by:esoftbg
ID: 11033077
I do not understand - the accepted answer links indirectly:
http://experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20965899.html
that I posted almost 12 hours early ????
 
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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

604 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