?
Solved

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

Posted on 2004-04-28
5
Medium Priority
?
257 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

Independent Software Vendors: 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

762 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