Autor Beitrag
Big_Nuke
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 13.10.02 12:51 
Öhhhm... :roll: ich brings ned fertig... ich will, das wenn ich im Edit2 mit ENTER bestätige, dass der Cursor(TextCursor) zu Edit 1 wechselt. ich hab schon das:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
if key = VK_RETURN then begin
lines := lines + 1;
memo1.lines.add(edit2.text + ' <-- Englisch == Deutsch --> ' + edit1.text);
if lines > 30 then ScrollBox1.vertscrollbar.position := ScrollBox1.vertscrollbar.position + 13;
end;
end;
das memo ist in der scrollbox abr das tut eh nix zur sache...

bitte um Ergänzung!
THX!!
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 13.10.02 13:27 
Hi!

Ich glaube, man könnte das so machen:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);
begin
  iF Ord(key) = 13 then
  begin
    Form1.ActiveControl:=Edit1;
    edit1.sellength:=0;
  end;
end;


MfG,
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Big_Nuke Threadstarter
Hält's aus hier
Beiträge: 7



BeitragVerfasst: So 13.10.02 15:31 
THX!! das hat geklappt!