TPlusMemo.OnBeforeChange, OnChange
PlusMemo Help Send comments on this topic.
TPlusMemo.OnBeforeChange, OnChange

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

type TpmBeforeChangeEvent = procedure(Sender: TObject; var Txt: PChar) of object;

 

property OnBeforeChange: TpmBeforeChangeEvent;

property OnChange: TNotifyEvent;

 

Description

These events are triggered every time the text content changes, either through a user action or from your application.  OnBeforeChange occurs right before TPlusMemo makes its internal modifications.  Write an OnBeforeChange handler to have your application notified before the change is made, or to modify the new text before it is put inside of the control.  The latter is done by returning from the handler with variable parameter Txt set to a different PChar.

 

The OnChange event occurs right after the text modification.