Sign in Join
FPDoc Onlineexperiment

TCustomEdit.TextChanged procedure

Member of TCustomEditprotectedIn unit StdCtrls

Applies case conversion (if needed), and updates the editing cursor selection text.

Declaration

pascal
procedure TextChanged; override

Description

TextChanged is a an overridden method used to perform actions needed when the CM_TEXTCHANGED message is handled for the control. No actions are performed in the method when a previous call to TextChanged has not been completed.

TextChanged uses the value in CharCase to determine if case conversion is applied to the value in Text. When CharCase contains ecUpperCase or ecLowerCase, the corresponding UTF-8 conversion routine is called. When Text is modified in the method, the values in CaretPos, SelStart, and SelLength are re-applied to the control. At run-time, the value in Modified is set to True when Text has been changed in the method.

See also

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