Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 493
  • Last Modified:

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 ?
0
moonrise
Asked:
moonrise
  • 2
  • 2
1 Solution
 
mayhewCommented:
Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
0
 
mayhewCommented:
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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now