RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomizeActionBars.HandlesTarget Method

Introduces an interface for verifying that the type, and state, of a target component or control are appropriate for the action.

Pascal
function HandlesTarget(Target: TObject): Boolean; override;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!