Vcl.StdActns.TSearchAction.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AOwner: TComponent); override;

C++

__fastcall virtual TSearchAction(System::Classes::TComponent* AOwner);

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.StdActns.pas
Vcl.StdActns.hpp
Vcl.StdActns TSearchAction

Description

Creates and initializes an instance of TSearchAction.

Most applications do not need to call the TSearchAction constructor because actions are added at design time to action lists or action managers.

The TSearchAction constructor creates an instance of its associated dialog, which descendant classes surface as the Dialog property. It then assigns the Search method as an event handler for the dialog's OnFind event, so that the action responds automatically when user's direct the dialog to search for a specified text string.

AOwner specifies the Owner for the action. This is the component that is responsible for freeing the TSearchAction instance.

See Also