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

TCustomEdit.TextChanged

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

Declaration

Source position: stdctrls.pp line 802

protected procedure TCustomEdit.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

TCustomEdit.CharCase

  

Controls the character case applied to values entered in the control.

TCustomEdit.Text

  

The text displayed and edited for the control.

TCustomEdit.CaretPos

  

The position of the editing cursor in the control.

TCustomEdit.SelStart

  

The zero-based index for the first UTF-8 character in the current text selection.

TCustomEdit.SelLength

  

The number of currently selected UTF-8-encoded characters in the control.

TCustomEdit.Modified

  

True when the value in Text has been changed using the keyboard.

TCustomEdit.RealSetText

  

Updates Modified and the TextHint display when storing the new Text value.

UTF8UpperCase

UTF8LowerCase

TControl.TextChanged

  

Performs actions needed when the value for the Text property has been changed.


Version 3.2 Generated 2024-02-25 Home