Page 1 of 1

Identify button when clicked

Posted: Tue Aug 18, 2020 7:09 am
by Ivan Videsvall
On a screen we have many buttons of the same kind. A click on any of these buttons should change a value, preferably in an a corresponding INT array. Is there a way to identify which button was clicked?

Re: Identify button when clicked

Posted: Tue Aug 18, 2020 7:39 am
by AMitchneck
There are multiple ways to identify the button. You can 1) attach action to each button that sets the corresponding tag or 2) hook click event to button and use scripting. For latter option, there are additionally 2 choices; 1) attach individual events per button and modify corresponding tag in each event or 2) attach all buttons to the same event and use sender argument to determine which button was pressed....