TCustomEdit.SelText property
The currently selected text in the edit box for the control.
Declaration
property SelText: string read GetSelText write SetSelText;Description
SelText is a
String property which contains the current
text selection in the control. The current text selection is the
UTF-8-encoded characters in
Text identified by the
SelStart and
SelLength properties.
The property value is derived by calling the UTF8Copy routine in
lazutf8.pas. Setting a new value for the property causes the
text selection in Text to be replaced with the specified value. The widgetset
class is notified when a handle has been allocated for the control.
Values must assigned to the SelStart and SelLength property before accessing SelText.
SelText is updated when the ClearSelection is called to remove the
text selection value from the content in Text. SelText is compared to Text to
determine the value for AutoSelected when VK_RETURN key or
MouseUp messages are handled.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
