Solved

Mark up Text

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

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

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 79
Delphi XE10 Round Image 2 78
Delphi 2 48
JAudiorecorder record freezing the app 29 60
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…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

14 Experts available now in Live!

Get 1:1 Help Now