?
Solved

How can I position the cursor within an MaskEdit

Posted on 1998-07-15
4
Medium Priority
?
490 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 80 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

800 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