Board index » cppbuilder » OnKeyDown event for TImage

OnKeyDown event for TImage


2005-04-15 07:46:06 PM
cppbuilder36
TImage doesn't have OnKeyDown or OnKeyPressed event. How to make them
for this component.
Thanks in advance,
TM
 
 

Re:OnKeyDown event for TImage

TM wrote:
Quote
TImage doesn't have OnKeyDown or OnKeyPressed event. How to make them
for this component.
Use the owning form's keypress and keydown event handlers, and set the form's
KeyPreview property to true.
*** Caveat *** From the BCB help file for KeyPreview :-,
"Navigation keys (Tab, BackTab, the arrow keys, and so on) are unaffected by
KeyPreview because they do not generate keyboard events."
--
Mark Jacobs
www.dkcomputing.co.uk
 

Re:OnKeyDown event for TImage

"TM" < XXXX@XXXXX.COM >wrote in message
Quote
TImage doesn't have OnKeyDown or OnKeyPressed event.
TImage derives from TGraphicControl, not TWinControl. Graphical controls
cannot accept keyboard input at all.
Gambit
 

{smallsort}