Board index » delphi » TEdit error beep on key Enter

TEdit error beep on key Enter

I need to use a TEdit as an input box which takes action (sends text
somewhere) when the user presses ENTER, but in Delphi5 this produces
an awfull error beep, which is very irritating.  I don't it behaved
like this in Delphi4.  Is there a way to do this?  I could use a memo,
but prefer not to. Thanks.
 

Re:TEdit error beep on key Enter


Similar use works OK for me, do you have more info?
regards Sven

Quote
<xe...@3dee.nl> wrote in message

news:39d78689.193087545@news.ams.chello.nl...
Quote
> I need to use a TEdit as an input box which takes action (sends text
> somewhere) when the user presses ENTER, but in Delphi5 this produces
> an awfull error beep, which is very irritating.  I don't it behaved
> like this in Delphi4.  Is there a way to do this?  I could use a memo,
> but prefer not to. Thanks.

Re:TEdit error beep on key Enter


hmm, I moved my code from Delphi4 pro to 5 pro a few months ago.  I
use a TEdit to send messages through a server-client connection. Since
people are typing, I use ENTER to send the text, so they don't need to
stop typing to press a 'send' button.  Previously, this action did not
cause a beep (as far as I remember) but now it does.  I have tried it
on a new form, new TEdit, same result.  I would like to get rid of
this beep.  I could change the TEdit for a TMemo, but that seems
overkill.  Any tips for how to kill the beep (other than in the
windows preferences) are very welcome.  I have Windows 2000, the code
should also run on 95/98/NT4.

Alex.

On Mon, 2 Oct 2000 09:58:44 +0200, "Sven Pran" <Sven.P...@alcatel.no>
wrote:

Quote
>Similar use works OK for me, do you have more info?
>regards Sven

><xe...@3dee.nl> wrote in message
>news:39d78689.193087545@news.ams.chello.nl...
>> I need to use a TEdit as an input box which takes action (sends text
>> somewhere) when the user presses ENTER, but in Delphi5 this produces
>> an awfull error beep, which is very irritating.  I don't it behaved
>> like this in Delphi4.  Is there a way to do this?  I could use a memo,
>> but prefer not to. Thanks.

Re:TEdit error beep on key Enter


I'm not sure if my experience can be of any help here, but I wonder:
If you concentrate upon using TEdit just to enter the information into
some local string variable and forget everything about sending over a
network. Does it still beep? (This is the way I use my TEdit boxes,
further use of the data from them - including type casting - is handled
separatly).

If it does then I'm puzzled, but if not then I believe you are looking at
the wrong place because then the beep is associated with your network
function and not with the TEdit.

That's all I can imagine for the moment - good luck
regards Sven

Quote
<xe...@3dee.nl> wrote in message

news:39d8dd30.280806087@news.ams.chello.nl...
Quote
> hmm, I moved my code from Delphi4 pro to 5 pro a few months ago.  I
> use a TEdit to send messages through a server-client connection. Since
> people are typing, I use ENTER to send the text, so they don't need to
> stop typing to press a 'send' button.  Previously, this action did not
> cause a beep (as far as I remember) but now it does.  I have tried it
> on a new form, new TEdit, same result.  I would like to get rid of
> this beep.  I could change the TEdit for a TMemo, but that seems
> overkill.  Any tips for how to kill the beep (other than in the
> windows preferences) are very welcome.  I have Windows 2000, the code
> should also run on 95/98/NT4.

> Alex.

> On Mon, 2 Oct 2000 09:58:44 +0200, "Sven Pran" <Sven.P...@alcatel.no>
> wrote:

> >Similar use works OK for me, do you have more info?
> >regards Sven

> ><xe...@3dee.nl> wrote in message
> >news:39d78689.193087545@news.ams.chello.nl...
> >> I need to use a TEdit as an input box which takes action (sends text
> >> somewhere) when the user presses ENTER, but in Delphi5 this produces
> >> an awfull error beep, which is very irritating.  I don't it behaved
> >> like this in Delphi4.  Is there a way to do this?  I could use a memo,
> >> but prefer not to. Thanks.

Re:TEdit error beep on key Enter


On Tue, 3 Oct 2000 09:54:27 +0200, "Sven Pran" <Sven.P...@alcatel.no>
wrote:

Quote
>I'm not sure if my experience can be of any help here, but I wonder:
>If you concentrate upon using TEdit just to enter the information into
>some local string variable and forget everything about sending over a
>network. Does it still beep? (This is the way I use my TEdit boxes,
>further use of the data from them - including type casting - is handled
>separatly).

>If it does then I'm puzzled, but if not then I believe you are looking at
>the wrong place because then the beep is associated with your network
>function and not with the TEdit.

Its got nothing to do with networking, even on a new project, new
form, new TEdit it beeps when hitting ENTER, with contents in .Text or
without, with OnKeyPress/Down/Up handler or without.  Could this be a
win2000 "feature"?
Quote

>That's all I can imagine for the moment - good luck
>regards Sven

><xe...@3dee.nl> wrote in message
>news:39d8dd30.280806087@news.ams.chello.nl...
>> hmm, I moved my code from Delphi4 pro to 5 pro a few months ago.  I
>> use a TEdit to send messages through a server-client connection. Since
>> people are typing, I use ENTER to send the text, so they don't need to
>> stop typing to press a 'send' button.  Previously, this action did not
>> cause a beep (as far as I remember) but now it does.  I have tried it
>> on a new form, new TEdit, same result.  I would like to get rid of
>> this beep.  I could change the TEdit for a TMemo, but that seems
>> overkill.  Any tips for how to kill the beep (other than in the
>> windows preferences) are very welcome.  I have Windows 2000, the code
>> should also run on 95/98/NT4.

>> Alex.

>> On Mon, 2 Oct 2000 09:58:44 +0200, "Sven Pran" <Sven.P...@alcatel.no>
>> wrote:

>> >Similar use works OK for me, do you have more info?
>> >regards Sven

>> ><xe...@3dee.nl> wrote in message
>> >news:39d78689.193087545@news.ams.chello.nl...
>> >> I need to use a TEdit as an input box which takes action (sends text
>> >> somewhere) when the user presses ENTER, but in Delphi5 this produces
>> >> an awfull error beep, which is very irritating.  I don't it behaved
>> >> like this in Delphi4.  Is there a way to do this?  I could use a memo,
>> >> but prefer not to. Thanks.

Other Threads