API:Vcl.StdActns.TSearchFindFirst.Create
Delphi
constructor Create(AOwner: TComponent); override;
C++
__fastcall virtual TSearchFindFirst(System::Classes::TComponent* AOwner);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.StdActns.pas Vcl.StdActns.hpp |
Vcl.StdActns | TSearchFindFirst |
Description
Creates and initializes an instance of TSearchAction.
Vcl.StdActns.TSearchFindFirst.Create inherits from Vcl.StdActns.TSearchAction.Create. All content below this line refers to Vcl.StdActns.TSearchAction.Create.
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.