Board index » cppbuilder » OnKeyPress Event for TPanel

OnKeyPress Event for TPanel


2005-09-02 10:07:00 PM
cppbuilder81
Hi!
Is it possible to implement OnKeyPress Event for TPanel in c++ builder 5.
If so, How?
Thanks in advance.
Regards,
Siraj
 
 

Re:OnKeyPress Event for TPanel

"siraj" < XXXX@XXXXX.COM >wrote in message
Quote
Is it possible to implement OnKeyPress Event for TPanel in c++ builder 5.
If so, How?
Yes it is. You'll just need to derive your own TPanel from TPanel that
makes the OnKeyPress event published. However, you will need to set the
panel's TabStop to true so that the Panel can receive keyboard messages.
HTH
Jonathan