How can I position the cursor within an MaskEdit

I want create an OnEnter event for a MAskEdit in which I position the cursor to the very beginning of the field. Is that possible ?
moonriseAsked:
Who is Participating?
 
mayhewConnect With a Mentor Commented:
Sorry, I meant to post this as an answer.  I'll do it again.

Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
0
 
mayhewCommented:
Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
0
 
moonriseAuthor Commented:
Hi mayhew, thank you for your answer, it does just what I needed. You entered the answer as a comment and I don't think I can give you the points.
0
 
moonriseAuthor Commented:
Forget last comment.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.