Solved

Mark up Text

Posted on 1998-09-30
3
190 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
[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
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 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