Link to home
Start Free TrialLog in
Avatar of moonrise
moonrise

asked on

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 ?
Avatar of mayhew
mayhew

Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
ASKER CERTIFIED SOLUTION
Avatar of mayhew
mayhew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of moonrise

ASKER

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.
Forget last comment.