Introduces an interface for verifying that the type, and state, of a target component or control are appropriate for the action.
function HandlesTarget(Target: TObject): Boolean; override;
virtual __fastcall Boolean HandlesTarget(TObject * Target);
HandlesTarget was introduced in TBasicAction so that descendants can override it to check the type and state of a target. That was done in TCustomizeActionBars, but since Target is never really the target (the true target is always the ActionBands customization dialog, whose location is stored internally), HandlesTarget always returns true.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!