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

TSearchAction

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

TSearchAction - base class for the actions associated with the various Search menu options.

Declaration

Source position: stdactns.pas line 284

type TSearchAction = class(TCommonDialogAction)

protected

  FControl: TCustomEdit;

  

FControl - local variable holding the control for use with this action.

  procedure CreateDialog; override;

  

Creates the class instance used in the Dialog property.

  procedure Notification(); override;

  

Handles notifications when a control in the class instance is added or removed.

  procedure UpdateControl();

  

Updates the internal Control to the value in NewControl.

  function PerformSearch;

  

Performs the search action using the Dialog options.

  procedure ShowNotFound; virtual;

  

Displays a dialog with a "Not Found" message.

public

  constructor Create(); override;

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

  function HandlesTarget(); override;

  procedure Search(); virtual;

  

Performs the Search action in the text for the associated control.

  procedure UpdateTarget(); override;

  

Updates the Enabled property for the action based on values in the Target control.

  procedure ExecuteTarget(); override;

  

Executes the action for the specified Target control.

end;

Inheritance

TSearchAction

  

TSearchAction - base class for the actions associated with the various Search menu options.

|

TCommonDialogAction

  

Dialog action used to create, configure, display, and execute a dialog form.

|

TCustomAction

  

TCustomAction is the ancestor class for TAction.

|

TContainedAction

  

Implements an Action class which has a category and parent action list.

|

TBasicAction

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

See also

TCommonDialogAction

  

Dialog action used to create, configure, display, and execute a dialog form.


Version 3.2 Generated 2024-02-25 Home