RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBEdit.AutoSelect Property

Determines whether all the text in the edit control is automatically selected when the control gets focus.

Pascal
property AutoSelect: Boolean;
C++
__property Boolean AutoSelect;

Set AutoSelect to select all the text when the edit control gets focus. AutoSelect only applies to single-line edit controls. 

Use AutoSelect when the user is more likely to replace the text in the edit control than to append to it. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!