Solved

Mark up Text

Posted on 1998-09-30
3
185 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
Comment Utility
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
Comment Utility
Hi,
Also check the documentation on the AutoSelect property.

/// John
0
 
LVL 10

Expert Comment

by:viktornet
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

11 Experts available now in Live!

Get 1:1 Help Now