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

TBasicAction.ActionComponent

Returns the component that initiated the action.

Declaration

Source position: classesh.inc line 1413

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.