| View previous topic :: View next topic |
| Author |
Message |
Ranganath Guest
|
Posted: Mon May 14, 2007 5:18 pm Post subject: Form not getting FormKeyUp and FormKeyPress event |
|
|
My form is not receiving these two events.
Do I need to do any settings? |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon May 14, 2007 10:22 pm Post subject: Re: Form not getting FormKeyUp and FormKeyPress event |
|
|
"Ranganath" <ranganath_vasudeva (AT) yahoo (DOT) com> wrote in message
news:4648537c$1 (AT) newsgroups (DOT) borland.com...
| Quote: | My form is not receiving these two events.
|
Why would you expect it to? You can't type onto a TForm directly. It
has no area to type into. Are you trying to capture the key strokes
of its child controls instead? You need to be more specific.
| Quote: | Do I need to do any settings?
|
To capture the keystrokes of its children, you need to set the form's
KeyPreview property to true.
Gambit |
|
| Back to top |
|
 |
Ranganatth Guest
|
Posted: Tue May 15, 2007 8:11 am Post subject: Re: Form not getting FormKeyUp and FormKeyPress event |
|
|
| Quote: | You need to be more specific.
[Yes the user cannot type on the form directly. |
But I need to process the escape key pressed
on the form.]
| Quote: | To capture the keystrokes of its children,
you need to set the form's
KeyPreview property to true.
[OK. KeyPreview property to true, do I need |
to override any event?]
-Ranganath |
|
| Back to top |
|
 |
|