No idea about the code you wrote, but the feature you ask is already built
into Windows: the enter key triggers the OnClick of the default button. Just
set the property "default" of the button you like and that's it.
--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be
-----Message d'origine-----
From: John Dammeyer
Sent: Thursday, August 18, 2011 4:55 AM
To: 'Moderated List for the Discussion of Delphi
ProgrammingexcludingDatabase-related topics'
Subject: Typing ENTER key in Tedit rings bell
I'm using a Tedit form for entering a string of characters. I want the
ENTER key to call a button ONCLICK event. That all works. The problem is
the ENTER key also rings the bell on Windows.
How do I prevent the bell from ringing. I'm guessing it's because the
ENTER key is considered an invalid input. How do I add the ENTER key to
be a valid input so it doesn't bing the bell?
Thanks
John
Automation Artisans Inc.
http://www.autoartisans.com/ELS/
Ph. 1 250 544 4950
_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi