문제

I'm implementing actions (in a TActionManager) for a user interface. Some controls, when clicked, execute the same action. However, in that action handler, I need to know which control was actually clicked by the user. But the Sender is a TAction instead of the originating control.

How can I identify which control using this action was actually pressed by the user?

도움이 되었습니까?

해결책

You can obtain this information from the ActionComponent property of the action.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top