TCustomEdit.AutoSelected property
Set to True when the text selection was made automatically.
Declaration
property 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 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
