System.Classes.TBasicAction.ActionComponent
Delphi
property ActionComponent: TComponent read FActionComponent write SetActionComponent;
C++
__property TComponent* ActionComponent = {read=FActionComponent, write=SetActionComponent};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Classes.pas System.Classes.hpp |
System.Classes | TBasicAction |
Description
Stores the client component that caused this action to execute.
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++).