Sign in Join
FPDoc Onlineexperiment

TBasicAction.HandlesTarget function

Member of TBasicActionpublicIn unit Classes

Determines whether Target can be handled by this action.

Declaration

pascal
function HandlesTarget(Target: TObject): Boolean; virtual

Description

HandlesTarget returns True if Target is 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 HandlesTarget directly, it will be called by the action itself when needed.

In TBasicAction this method is empty; descendant classes should override this method to implement appropriate checks.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.