FMX.Memo.TMemo.OnChange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnChange: TNotifyEvent read GetOnChange write SetOnChange;

C++

__property OnChange;

Properties

Type Visibility Source Unit Parent
event published
FMX.Memo.pas
FMX.Memo.hpp
FMX.Memo TMemo

Description

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

FMX.Memo.TMemo.OnChange inherits from FMX.Memo.TCustomMemo.OnChange. All content below this line refers to FMX.Memo.TCustomMemo.OnChange.

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