Solved

How can I position the cursor within an MaskEdit

Posted on 1998-07-15
4
484 Views
Last Modified: 2006-11-17
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
Comment
Question by:moonrise
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:mayhew
ID: 1357943
Try:
     MaskEdit1.SelStart := 0;

on the OnEnter event.

That should do it.
0
 
LVL 5

Accepted Solution

by:
mayhew earned 20 total points
ID: 1357944
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
 

Author Comment

by:moonrise
ID: 1357945
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
 

Author Comment

by:moonrise
ID: 1357946
Forget last comment.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now