Sigo sufriendo...
La clase TAction tiene la propiedad: ActionComponent que segun dice la ayuda de Delphi:
Cita:
Description
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++).
|
Deberia apuntar al componente que llamó la acción: el TMenuItem !!!!!
Un componente que no puede tener el foco podrá lanzar eventos???