Sign in Join
FPDoc Onlineexperiment

TReplaceDialog class

In unit Dialogs

Implements a find and replace dialog.

Declaration

pascal
TReplaceDialog = class(TFindDialog)

Inheritance

  1. TReplaceDialog
  2. TFindDialog
  3. TCommonDialog
  4. TLCLComponent
  5. TComponent
  6. TPersistent
  7. 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

Properties

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

Methods

DefaultTitleprotectedDefault value for the Title property used on the replace dialog.
ReplaceClickprotectedReplaceClick - code to execute when the Replace button is clicked (replace just the current instance).
ReplaceAllClickprotectedReplaceAllClick - code to execute when the Replace All button is clicked (replace all remaining instances).
CreateFormprotectedGets the form instance displayed when dialog is executed.
SetFormValuesprotectedCopies property values from the class instance to the controls on the dialog form.
GetFormValuesprotectedCopies property values from the dialog form to class instance after the dialog has been executed.
CreatepublicConstructor for the class instance.

Events

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

Inherited

From TFindDialog (21)

CalcPosition CancelClick CloseDialog Destroy DoCloseForm DoShowForm Execute Find FindClick FindText GetHeight GetWidth Help HelpClick Left OnFind OnHelpClicked Options Position Replace Top

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

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.