Solved

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

Posted on 2004-04-28
5
254 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 250 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

749 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