Vcl.BandActn.TCustomizeActionBars.HandlesTarget
Delphi
function HandlesTarget(Target: TObject): Boolean; override;
C++
virtual bool __fastcall HandlesTarget(System::TObject* Target);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.BandActn.pas Vcl.BandActn.hpp |
Vcl.BandActn | TCustomizeActionBars |
Description
Introduces an interface for verifying that the type, and state, of a target component or control are appropriate for the action.
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.