Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

15 Experts available now in Live!

Get 1:1 Help Now