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
Mark Jacobs
CBuilder Developer
2005-04-15 07:54:00 PM
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