TReplaceDialog class
Implements a find and replace dialog.
Declaration
TReplaceDialog = class(TFindDialog)Inheritance
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
ReplaceText | published | String with the value used to replace the value in FindText. |
Methods
DefaultTitle | protected | Default value for the Title property used on the replace dialog. |
ReplaceClick | protected | ReplaceClick - code to execute when the Replace button is clicked (replace just the current instance). |
ReplaceAllClick | protected | ReplaceAllClick - code to execute when the Replace All button is clicked (replace all remaining instances). |
CreateForm | protected | Gets the form instance displayed when dialog is executed. |
SetFormValues | protected | Copies property values from the class instance to the controls on the dialog form. |
GetFormValues | protected | Copies property values from the dialog form to class instance after the dialog has been executed. |
Create | public | Constructor for the class instance. |
Events
OnReplace | published | Event 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.
