[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TFindDialog.OnReplace

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

Declaration

Source position: dialogs.pp line 496

protected property TFindDialog.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

TFindDialog.FindText

  

Contains the text to locate when the Find button is clicked on the dialog form.

TFindDialog.ReplaceText

  

String with the value used to replace the value in FindText.

TFindDialog.OnReplace

  

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

TReplaceDialog.ReplaceText

  

String with the value used to replace the value in FindText.

TReplaceDialog.OnReplace

  

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

TReplaceDialog.CreateForm

  

Gets the form instance displayed when dialog is executed.


Version 4.0 Generated 2025-05-03 Home