You can obtain this information from the ActionComponent
property of the action.
How to know which control was clicked when sharing an action? [duplicate]
-
28-06-2023 - |
Question
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?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow