Sign in Join
FPDoc Onlineexperiment

TFindDialog class

In unit Dialogs

TFindDialog - a dialog used for finding text within the current editor or text buffer.

Declaration

pascal
TFindDialog = class(TCommonDialog)

Inheritance

  1. TFindDialog
  2. TCommonDialog
  3. TLCLComponent
  4. TComponent

Descends from it: TReplaceDialog

Description

Opens a dialog box allowing the user to enter text for searching, for example in a text editor.

As TFindDialog is the parent class for the TReplaceDialog, it contains definitions for the Replace method, but the Replace option does not actually appear when the dialog is displayed: you need to use TReplaceDialog to do that.

See also

Properties

ReplaceTextprotectedString with the value used to replace the value in FindText.
LeftpublicCoordinate for the Left side of the dialog form.
PositionpublicThe position for the dialog form.
ToppublicCoordinate for the Top edge of the dialog form.
FindTextpublishedContains the text to locate when the Find button is clicked on the dialog form.
OptionspublishedContains the find / replace options enabled for the dialog.

Methods

DefaultTitleprotectedReturns the default title displayed on the dialog.
FindClickprotectedImplements the OnClick event handler for the Find button on the dialog.
HelpClickprotectedImplements the OnClick event handler for the Help button on the dialog.
CancelClickprotectedImplements the OnClick event handler for the Cancel button on the dialog.
GetHeightprotectedGet the value for the Height property.
GetWidthprotectedGets the value for the Width property.
DoCloseFormprotectedImplements the OnClose event handler on the internal form displayed for the dialog.
DoShowFormprotectedImplements the OnShow event handler on the internal form displayed for the dialog.
FindprotectedSignals the OnFind event handler when the Find button is clicked on the dialog form.
HelpprotectedSignals the OnHelpClicked event handler when the Help button on the dialog form is clicked.
ReplaceprotectedSignals the OnReplace event handler when the Replace button is clicked on the dialog form.
CreateFormprotectedCreates and configures the internal form displayed for the dialog.
SetFormValuesprotectedStores property values in the class instance to the controls on the dialog form.
GetFormValuesprotectedRetrieves values from the dialog form and stores them in the properties for the class instance.
CalcPositionprotectedDetermines the position for the dialog form and captures its coordinates.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
CloseDialogpublicCloses the dialog form when its Cancel button is clicked.
ExecutepublicDisplays the dialog form and responds to button clicks.

Events

OnReplaceprotectedEvent handler signalled to replace occurrence(s) of FindText with the value in ReplaceText.
OnFindpublishedEvent handler signalled when the Find button is clicked on the dialog form.
OnHelpClickedpublishedEvent handler signalled when the Help button is clicked on the dialog form.

Fields

FFindFormprotectedFFindForm - local variable holding the form used for the Find dialog.
FOnReplaceprotectedFOnReplace - local variable identifying the event handler for replacing.
FOnFindprotectedFOnFind - local variable identifying the event handler for finding.
FOptionsprotectedFOptions - local variable holding the set of current options.
FOnHelpClickedprotectedFOnHelpClicked - local variable identifying the help event handler.
FReplaceTextprotectedFReplaceText - local variable holding the Replace text.
FFindTextprotectedFFindText - local variable containing the text to be found.

Inherited

From TCommonDialog (21)

AttachTo Close DoCanClose DoClose DoExecute DoShow Handle HandleAllocated Height HelpContext OnCanClose OnClose OnDialogResult OnShow ResetShowCloseFlags SetHeight SetWidth Title UserChoice Width WSRegisterClass

From TLCLComponent (7)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.