Manipulate the Text of a TEdit component

LeTay
LeTay used Ask the Experts™
on
In a TEdit field, when the user changes it, I want the Onchange Event to modify the content of the Text and place the cursor at the end of it.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Geert GOracle dba
Top Expert 2009

Commented:
what if the user changes letters in the middle of the text ?
the event will fire for every change (that's every letter) done by the user

so when the user is typing, suddenly the code puts the cursor at the end, and the user keeps typing

rahter odd ... no ?
Commented:
That's what I want
I found the solution by myself : TEdit.SelStart := Length(TEdit.Text);
Question can be closed
Geert GOracle dba
Top Expert 2009

Commented:
you are the one with the power to close the question
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Author

Commented:
I never did that ...
Geert GOracle dba
Top Expert 2009

Commented:
wow, really ?
just accept your own answer
Geert GOracle dba
Top Expert 2009

Commented:
closed

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial