Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

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

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
gibbm01
Asked:
gibbm01
1 Solution
 
MikProgCommented:
Look into  "04/21/2004 130 Disable Windows key ?  " solution
0
 
esoftbgCommented:
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
 
Ivanov_GCommented:

   you can also check TCustomForm.KeyPreview propery in the help ...
0
 
meadorjCommented:
0
 
esoftbgCommented:
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now