Autor Beitrag
DannyVapid
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38


Delphi 5 Enterprise
BeitragVerfasst: Di 12.06.07 15:22 
Hallöchen,

ich möchte einem TEdit unter Delphi5 beibringen, daß es seinen Cursor ans Ende des drinstehenden Textes stellen soll.
Also eigentlich einen Druck auf die ENDE-Taste simulieren.
Bin mit dem OnKeyPress aber nicht weitergekommen.

weiß jemand Rat?

danke, danny
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 12.06.07 15:26 
Moin!

Probier mal Edit1.SelStart := Length(Edit1.Text);

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
DannyVapid Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38


Delphi 5 Enterprise
BeitragVerfasst: Di 12.06.07 15:30 
das klappt. danke schön, manchmal kann die lösung so einfach sein