Autor Beitrag
Tilo
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1098
Erhaltene Danke: 13

Win7 geg. WInXP oder sogar Win98
Rad2007
BeitragVerfasst: Mi 07.07.04 07:55 
Meine Frage ist:
Wie unterdrückt man das Standard-Warnsignal von Windoof?
Bei mir tritt es jedesmal auf, wenn ich bei einer TEdit-Komponente das OnKeyPress-Ereigniss durch Drücken der Entertaste(#13) auslöse? Ist echt nervig das Problem.


Moderiert von user profile iconPeter Lustig: Topic aus VCL (Visual Component Library) verschoben am Mi 07.07.2004 um 10:35
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 07.07.04 09:00 
In OnKeyPress:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
If Key=#13 then begin
    //(...)
    Key:=#0; //<-- :idea: !!!
end;
firus1983
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 170

Win98,XP,
D6 Entrpr
BeitragVerfasst: Do 08.07.04 12:02 
Entweder mein "Vor-Schreiber" hat Recht, oder du meinst, das Die ENTER-Taste trotzdem ein Ereignis o.ä. auslöst, aber der Ton unterdrückt wird.....

bei letzterem bin ich überfordert.....
du könntest höchstens deine Lautsprecher ausschalten *g*
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 08.07.04 14:38 
Zitat:
das Die ENTER-Taste trotzdem ein Ereignis o.ä. auslöst

:?: :?: :?:
Key:=#0 wird doch im Ereignis selbst gesetzt, und danach erfolgt keine weitere Behandlung, weshalb der Piep-Ton ja überhaupt erst kommt. :roll:
Tilo Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1098
Erhaltene Danke: 13

Win7 geg. WInXP oder sogar Win98
Rad2007
BeitragVerfasst: Fr 09.07.04 10:03 
@jaenicke:
ich werde es mal ausprobieren.
Werde mich dann melden.