Autor Beitrag
Stoffel1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Do 14.10.04 10:41 
Hallo,

ich werd gleich wahnsinnig.
Hat jemand von euch ne Ahnung wieso das nicht geht?


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
  if Key = #13 then
  begin
    (Sender as TCustomEdit).Perform(WM_NEXTDLGCTL, 0, 0); //Zum nächsten Element wechseln
    Key := #0; //Gedrückte Taste unwirksam machen
  end;
end;


Ich habe diesen Code schon 1000e Male verwendet. Liegt es an Einstellungen oder so - kann ich mir zwar nicht vorstellen aber vielleicht wisst ihr ja was...

Gruß,

Stoffel
Didi
Hält's aus hier
Beiträge: 2



BeitragVerfasst: So 17.10.04 16:12 
Hast Du die Eigenschaft KeyPreview auf True gestellt