[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TBasicAction.HandlesTarget

Determines whether Targetcan be handled by this action

Declaration

Source position: classesh.inc line 1416

public function TBasicAction.HandlesTarget(

  Target: TObject

):Boolean; virtual;

Description

HandlesTargetreturns Trueif Targetis a valid client for this action and if so, if it is in a suitable state to execute the action. An application programmer should never need to call HandlesTargetdirectly, it will be called by the action itself when needed.

In TBasicActionthis method is empty; descendent classes should override this method to implement appropriate checks.

See also

UpdateTarget

  

Notify client controls when the action updates itself.

ExecuteTarget

  

Executes the action on the Targetobject