FMX.Memo.TCustomMemo.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChange: TNotifyEvent read GetOnChange write SetOnChange;

C++

__property System::Classes::TNotifyEvent OnChange = {read=GetOnChange, write=SetOnChange};

Properties

Type Visibility Source Unit Parent
event public
FMX.Memo.pas
FMX.Memo.hpp
FMX.Memo TCustomMemo

Description

Occurs when the focus leaves the memo or the user presses ENTER. The event occurs only when the text has changed.

OnChange is raised when the following situations occur:

  • Text is cleared in the memo
  • Text is set in the memo
  • The memo loses focus
  • The user presses the ENTER key

Write an OnChange event handler to check the modified text data.

See Also