Giovanni asked:

> We're not clicking the OK Button just pressing Enter so why is
> the handler called?

Because VK_ENTER is broadcast to the forms controls as a CM_DIALOGKEY
message before being dispatched in the usual way. If the OK button is set to
default then its being clicked by the CM_DIALOGKEY handling in the base
button code. Its the usual behaviour for Delphi.

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to