BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Form not getting FormKeyUp and FormKeyPress event

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Ranganath
Guest





PostPosted: Mon May 14, 2007 5:18 pm    Post subject: Form not getting FormKeyUp and FormKeyPress event Reply with quote



My form is not receiving these two events.
Do I need to do any settings?
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon May 14, 2007 10:22 pm    Post subject: Re: Form not getting FormKeyUp and FormKeyPress event Reply with quote



"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





PostPosted: Tue May 15, 2007 8:11 am    Post subject: Re: Form not getting FormKeyUp and FormKeyPress event Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.