Autor Beitrag
saxe66
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: So 27.04.03 16:38 
Das Problem wurde bestimmt schonmal behandelt, aber dennoch meine Frage. Wie kann man die Edit-Komponenten anhand der Tab-Reihenfolge mit Enter der Reihe nach anwählen und nicht nur mit TAB ?

Vielen Dank ...
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: So 27.04.03 16:44 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.EditBlaKeyPress(Sender: TObject; var Key: Char);
begin
  if Key = #13 then begin
    Perform(WM_NEXTDLGCTL, 0, 0);
    Key := #0;
  end;
end;

Einfach in jedes OnKeyPress der Edits.
saxe66 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 104



BeitragVerfasst: So 27.04.03 16:53 
Titel: Hammermäßig ...
Danke für die genial schnelle Antwort, das bringt mich sofort weiter ...