Autor Beitrag
sagar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Mo 28.07.03 09:25 
hallo leute!

Wie kann ich die position des cursors bestimmen? Ich meine den cursor für die tastratur. ich möchte z.b dass wenn edit1 6 zeichen hat, dass er automatisch auf edit9 springt. Aber das objekt ist nicht das nächste in der Tab-list.

Moderiert von user profile iconTino: Title geändert.
ShadowThief
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278



BeitragVerfasst: Mo 28.07.03 09:32 
im on KeyPress-ereigniss von edit1 schreibst du rein:

ausblenden Delphi-Quelltext
1:
2:
if Length((Sender as TEdit).Text) = 6 then
  edit9.SetFocus;


shadow.
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mo 28.07.03 09:32 
in der onChange() Methode des Edit-Feldes einfach mit length(Sender as Tedit.Text) die Länge abfragen und wenn erreicht, dann mit NextEdit.SetFocus() weitergehen.

grez
msch
sagar Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Mo 28.07.03 10:25 
Vielen Dank!