Solved

How can I position the cursor within an MaskEdit

Posted on 1998-07-15
4
487 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi - replicating a form 8 111
URL for downloading Google Chrome for Win XP 2 281
Dev express lookupcombo 3 64
can i put an image from resource into image tag ? 6 40
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

732 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