Syntax:
find event in {button}
Keyword handler:
linguist.window.keyword.WKFind.class
Runtime handler(s):
linguist.window.handler.WHFindEvent.class
Function:
The most elegant way to create a set of buttons that have similar behavior is to use an array of buttons and a common callback handler - see on. When an event occurs the first thing is to find which element of the button caused it. Calling this command returns the button's index set to the element that caused the callback. The expression the index of {button} will then return a numeric value that can be used to set the index of other items or to make decisions.
Example(s):
find event in Buttons