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

TReplaceDialog

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

A dialog allowing the user to replace text

Declaration

Source position: dialogs.pp line 429

type TReplaceDialog = class(TFindDialog)

protected

  procedure ReplaceClick();

  

ReplaceClick - code to execute when the Replace button is clicked (replace just the current instance)

  procedure ReplaceAllClick();

  

ReplaceAllClick - code to execute when the Replace All button is clicked (replace all remaining instances)

  function CreateForm; override;

  

CreateForm - function result returns the form that was created

  procedure SetFormValues; override;

  

SetFormValues - specifies the values for the form

  procedure GetFormValues; override;

  

GetFormValues - finds the values for the form

public

  constructor Create(); override;

  

Create - constructor for TReplaceDialog: calls inherited Create and sets options for find and replace

published

  property ReplaceText;

  

ReplaceText - the text string that is to be substituted for the Find text

  property OnReplace;

  

OnReplace - event handler for replacing text

end;

Inheritance

TReplaceDialog

  

A dialog allowing the user to replace text

|

TFindDialog

  

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

The dialog appears and offers boxes for the user to enter text for searching and text to replace it,
for example while editing a file or large piece of text.
A number of buttons appear, offering the choice to replace this instance, find next, replace all

See also

TFindDialog

  

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

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads