Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using idhttp to login to instagram 2 89
Delphi - replicating a form 8 72
delphi parse string to params 3 121
TServerSocket - file via sendbuf or Text via sendtext ? 1 52
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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now