[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomEdit.AutoSelected

Set to True when the text selection was made automatically.

Declaration

Source position: stdctrls.pp line 838

protected property TCustomEdit.AutoSelected : Boolean
  read FAutoSelected
  write FAutoSelected;

Description

AutoSelected is a Boolean property which indicates if the text selection in the control was made automatically after handling key press or mouse events.

AutoSelected is used in conjunction with the AutoSelect property which enables the capability. AutoSelected is not set to True when AutoSelect has not been enabled. AutoSelect is enabled by default in TCustomEdit.

AutoSelected is updated when the Enter (^M) key is handled for the control, or when a left mouse up event is handled for an already focused control. When AutoSelect is set to True, the SelectAll method is called to select all of the the text in the control. AutoSelected is set to True when SelText has the same value as the Text property.

AutoSelected is set to False when focus leaves the control.

See also

TCustomEdit.AutoSelect

  

Enables auto-selection of text when focused.

TCustomEdit.SelectAll

  

Selects the entire text in the edit control.

TCustomEdit.SelText

  

The currently selected text in the edit box for the control.

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.

TCustomEdit.DoExit

  

Clears the value in AutoSelected when the control loses focus.


Version 3.2 Generated 2024-02-25 Home