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

TFindDialog.OnFind

Event handler signalled when the Find button is clicked on the dialog form.

Declaration

Source position: dialogs.pp line 508

published property TFindDialog.OnFind : TNotifyEvent
  read FOnFind
  write FOnFind;

Description

OnFind is a TNotifyEvent property with the event handler signalled to perform the find operation for the dialog. OnFind is signalled (when assigned) from the Find method, and occurs when the Find button is clicked on the dialog form.

An application must implement and assign a handler routine to the property to respond to the event notification.

The Sender argument is the object instance for the event notification. It can be cast to TFindDialog (or TReplaceDialog in the descendent class) to access the properties and methods in the dialog class instance. Use its FindText and Options properties to perform the actions needed in the handler routine.

See also

TFindDialog.FindText

  

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

TFindDialog.Options

  

Contains the find / replace options enabled for the dialog.

TFindDialog.Find

  

Signals the OnFind event handler when the Find button is clicked on the dialog form.

TFindDialog.FindClick

  

Implements the OnClick event handler for the Find button on the dialog.

TReplaceDialog.ReplaceText

  

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


Version 4.0 Generated 2025-05-03 Home