Sign in Join
FPDoc Onlineexperiment

TFindDialog.OnReplace property

Member of TFindDialogprotectedIn unit Dialogs

Event handler signalled to replace occurrence(s) of FindText with the value in ReplaceText.

Declaration

pascal
property OnReplace: TNotifyEvent read FOnReplace write FOnReplace;

Description

An application must implement and assign a TNotifyEvent handler routine to OnReplace which responds to the event notification.

The Sender argument contains the object instance with the TFindDialog or descendant for the event notification. It can be cast to a TFindDialog or a TReplaceDialog type to access properties and methods in the dialog class, including: FindText, ReplaceText, and Options.

OnReplace is introduced in TFindDialog, but it is used in the implementation of the TReplaceDialog descendant. Use TReplaceDialog when the additional controls and buttons implemented in the replace dialog are needed.

See also

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