Solved

Mark up Text

Posted on 1998-09-30
3
187 Views
Last Modified: 2010-04-06
How to mark Text in a TEdit ?
My program fills in some Edits automatically with POSSIBLE Text-Data. So how to automatically mark up/highlight this Text, that the User may delete it easily if it does not match ?
0
Comment
Question by:omsec
3 Comments
 
LVL 4

Accepted Solution

by:
BoRiS earned 10 total points
ID: 1341292
omsec

procedure TForm1.FormCreate(Sender: TObject);
begin
 Edit1.SelectAll;
end;

this will select all the text in the edit1 on the form create..

Later
BoRiS
0
 
LVL 4

Expert Comment

by:erajoj
ID: 1341293
Hi,
Also check the documentation on the AutoSelect property.

/// John
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1341294
you could also use SelStart and SelLength

I think you cannot select all edit controls if you don't have th focus on it.....
//vik
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 90
FMX enumerated colours 2 101
error 1.1 400 Bad request idhttp delphi 18 91
DBGrid or StringGrid ? 6 91
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…
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/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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