RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBasicAction.ActionComponent Property

Indicates the client component that caused this action to execute.

Pascal
property ActionComponent: TComponent;
C++
__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!