Vcl.StdActns.TSearchFindNext.HandlesTarget

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HandlesTarget(Target: TObject): Boolean; override;

C++

virtual bool __fastcall HandlesTarget(System::TObject* Target);

Properties

Type Visibility Source Unit Parent
function public
Vcl.StdActns.pas
Vcl.StdActns.hpp
Vcl.StdActns TSearchFindNext

Description

Indicates whether the action can execute.

Do not call the HandlesTarget method. This method is called automatically when the user invokes an object (such as a tool button or menu item) that is linked to this action. The HandlesTarget method provides the action object with an opportunity to indicate whether it is appropriate to execute at this time with the object specified by the Target parameter as a “target”.

Target is the currently active object.

HandlesTarget always ignores the Target parameter, and checks whether the associated TSearchFind action is enabled, and if so, whether its associated dialog has a search string. If the action specified by SearchFind is enabled, and the FindText property of its associated dialog has been set, then HandlesTarget returns true, because it can search for the FindText string in the TSearchFind action's edit control.

See Also