RAD Studio VCL Reference
TBasicAction.ActionComponent Property

Indicates the client component that caused this action to execute.

property ActionComponent: TComponent;
__property TComponent * ActionComponent;

Use ActionComponent to discern which client component caused this action to execute. For example, examine ActionComponent from an OnExecute event handler if you need to know what user action triggered this action. 

When the user clicks a client control, that client sets ActionComponent before calling the action's Execute method. After the action executes, the action resets ActionComponent to nil (Delphi) or NULL (C++). 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!