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

TFindDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

A dialog used for finding text within the current editor or text buffer

Declaration

Source position: dialogs.pp line 355

type TFindDialog = class(TCommonDialog)

protected

  FFindForm: TForm;

  

  FOnReplace: TNotifyEvent;

  

  FOnFind: TNotifyEvent;

  

  FOptions: TFindOptions;

  

  FOnHelpClicked: TNotifyEvent;

  

  FReplaceText: String;

  

  FFindText: String;

  

  procedure FindClick();

  

  procedure HelpClick();

  

  procedure CancelClick();

  

  procedure UpdatePosition;

  

  procedure DoCloseForm(); virtual;

  

  procedure Find; virtual;

  

  procedure Help; virtual;

  

  procedure Replace; virtual;

  

  function CreateForm; virtual;

  

  procedure SetFormValues; virtual;

  

  procedure GetFormValues; virtual;

  

  property ReplaceText: String; [rw]

  

  property OnReplace: TNotifyEvent; [rw]

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  procedure CloseDialog;

  

  function Execute; override;

  

  property Left: Integer; [rw]

  

  property Position: TPoint; [rw]

  

  property Top: Integer; [rw]

  

published

  property FindText: String; [rw]

  

  property Options: TFindOptions; [rw]

  

  property OnFind: TNotifyEvent; [rw]

  

  property OnHelpClicked: TNotifyEvent; [rw]

  

end;

Inheritance

TFindDialog

  

A dialog used for finding text within the current editor or text buffer

|

TCommonDialog

  

TCommonDialog : the base type from which other dialogs are derived

|

TLCLComponent

?

TObject

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

TReplaceDialog

  

A dialog allowing the user to replace text

The latest version of this document can be found at lazarus-ccr.sourceforge.net.