[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TBasicAction.ActionComponent

Returns the component that initiated the action.

## Declaration

`public property TBasicAction.ActionComponent: TComponent read FActionComponent write FActionComponent;`

## Description

ActionComponent is set to the component that caused the action to execute, e.g. a toolbutton or a menu item. The property is set just before the action executes, and is reset to nil after the action was executed.

## See also

TBasicAction.Execute |  | Triggers the OnExecute event
TBasicAction.OnExecute |  | Event triggered when the action executes.