RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSearchAction.Create Constructor

Creates and initializes an instance of TSearchAction.

Pascal
constructor Create(AOwner: TComponent); override;
C++
virtual __fastcall TSearchAction(TComponent * AOwner);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!