Autor Beitrag
klezmor
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Do 11.08.05 19:20 
Hallo wie schaffe ich es, dass der Cursor bei der Bestätigung eines Edit-Fensters zum nächsten Edit weiterspringt, die key abfrage kenne ich, mir geht es nur um die Funktion, wie man die Position eines Cursors angibt?
Harry M.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 754

Win 2000, XP
D2005
BeitragVerfasst: Do 11.08.05 19:23 
Kcuk Dir mal die Eigenschaft TabOrder an.

_________________
Gruß Harry
Et spes me per dies sine te ducat et amor me ferat, si dolor spem tollit.
TM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 74

Win xp
D7 ET
BeitragVerfasst: Do 11.08.05 19:32 
Hallo

Ich hab eigentlich keine Ahnung, aber meines Wissens brauchst du da eine Prozedur die, z.B. wenn man im 1. Eingabefeld auf Enter drückt, das 2. Eingabefeld mit '... .setfocus' auswählt.

oder? :?

..

_________________
Dieser Beitrag enthält keine Schreibfehler.
Das sind versteckte Hinweise.
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Do 11.08.05 19:57 
hier mal ne Möglichkeit:

2.Komponenten:
Edit1 <<< hat das Ereignis "onKeyDown"
Edit2

wenn man sich im ersten Edit Feld befindet und Enter drückt, springt er zum zweiten Edit Feld

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if key=VK_RETURN then edit2.SetFocus;
end;
TM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 74

Win xp
D7 ET
BeitragVerfasst: Do 11.08.05 20:01 
Ja, so hab ich mir das auch gedacht.

_________________
Dieser Beitrag enthält keine Schreibfehler.
Das sind versteckte Hinweise.
klezmor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 558


delphi 6 personal delphi 2005 personal
BeitragVerfasst: Do 11.08.05 21:20 
Danke hat funktioniert.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 11.08.05 21:52 
Wird etwas mühsam, bei meherer Edits. Liebr jedem Edit die gleiche OnKeyPress methode zu weisen und dort reinschreiben:
ausblenden Delphi-Quelltext
1:
SendMessage(handle, WM_NEXTDLGCTL, 00);