Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Apr : CarriageReturn in my TEdit closes my dialog

www.cryer.info
Managed Newsgroup Archive

CarriageReturn in my TEdit closes my dialog

Subject:CarriageReturn in my TEdit closes my dialog
Posted by:"JJ" (nospam@nospam.com)
Date:Fri, 25 Apr 2008 11:49:21

I have a dialog, that has a TEdit control. When the user is in the TEdit,
and he hits the ENTER key, I just want to get notified of that, so I can
call another method on my dialog. But instead, the dialog closes. (using my
default button OK).

How can I trap the enter key?

Replies:

www.cryer.info
Managed Newsgroup Archive