Autor Beitrag
neffets
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Mo 18.06.07 16:34 
Hallo,
ich habe ein merkwürdiges Phänomen.
Nach EInfügen einer Listbox ertönt an ganz anderen Stellen im Programm ein Beep, wenn eine Eingabe mit Enter abgeschlossen wird.
Als Eingabezeichen sind im gesamten Programm nur
ZulZeichen : SET OF char = [#48..#57,#13,#8,#44,#46]+['*']+ [',']+['E']+['W'];
zugelassen.
Wieso beept das dann?

Beste Grüße
neffets
Webo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 577
Erhaltene Danke: 14

Win 7, Debian
C# (Visual Studio 2013), PHP, C, C++ (Eclipse, KDevelop)
BeitragVerfasst: Mo 18.06.07 17:04 
Hi,

meines Wissens nach kommt immer ein beep, wenn man die Eingabetaste im Editfeld oder Listen drückt.

Warte, such mal Behebungsquelltext ...

Webo
Webo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 577
Erhaltene Danke: 14

Win 7, Debian
C# (Visual Studio 2013), PHP, C, C++ (Eclipse, KDevelop)
BeitragVerfasst: Mo 18.06.07 17:10 
Hier der Quelltext:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.listbox1KeyPress(Sender: TObject; var Key: Char);
begin
  if Key = Char(VK_RETURN) then
    Key := #0;
end;



Musst du mal schauen, ob das das Problem löst.
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 18.06.07 17:25 
Alternativ #13 (=Enter) in deinem Set weglassen.
neffets Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Di 19.06.07 21:27 
Hallo,
besten Dank
klappt prima

Gruß