Sign in Join
FPDoc Onlineexperiment

TReplaceDialog.OnReplace property

Member of TReplaceDialogpublishedIn unit Dialogs

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

Declaration

pascal
property OnReplace:;

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.

This description is the one of Dialogs.TFindDialog.OnReplace.

See also

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