Sign in Join
FPDoc Onlineexperiment

TCustomEdit.SelectAll procedure

Member of TCustomEditpublicIn unit StdCtrls

Selects the entire text in the edit control.

Declaration

pascal
procedure SelectAll; virtual

Description

SelectAll is a procedure used to select all of the text content in the edit box for the control.

SelectAll checks the value in Text to ensure that content is available for the selection. No actions are performed in the method when Text is an empty string ('').

When Text is not empty, the values in SelStart and SelLength are updated to use the content in Text starting at the first UTF-8-encoded character. UTF8Length is called to get the length for Text, and the value stored in SelLength.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.