Unit 'StdCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomEdit.AutoSelect

Enables auto-selection of text when focused.

Declaration

Source position: stdctrls.pp line 838

protected property TCustomEdit.AutoSelect : Boolean
  read FAutoSelect
  write FAutoSelect
  default True;

Description

AutoSelect is a Boolean property which enables or disables auto-selection of text when the control receives focus. If True, the edit control will select all its text when it receives focus or when the Enter key is pressed. The default value for the property is True.

AutoSelect is used in the KeyUpAfterInterface method, and determines if the SelectAll method is called when editing is completed in the control. It is used in MouseUp to determine if SelectAll is called when the Left mouse button is clicked. It is also used in DoEnter to determine if SelectAll is called when the Enter key is pressed.

See also

TCustomEdit.SelectAll

  

Selects the entire text in the edit control.

TCustomEdit.AutoSelected

  

Set to True when the text selection was made automatically.

TCustomEdit.KeyUpAfterInterface

  

Handles Key Up events forwarded from the LCL interface.

TCustomEdit.MouseUp

  

Handles mouse up events for the control.

TCustomEdit.DoEnter

  

Signals the OnEnter event handler, and selects the entire text when AutoSelect is True.



CT Web help

CodeTyphon Studio