Select Event 30
Description
For a Button with Style'Push'
this event is generated when the user "pushes" the button. This can be done by clicking the left mouse button, or by pressing the Enter key or the space bar when the Button has the focus. The Select event can also be generated when the Button does not have the focus, by pressing the Enter key when its Default property is 1 or by pressing the ESC key when its Cancel property is 1.
For a Button with Style'Radio'
or 'Check'
this event is generated when the user toggles the button from one state to another. This can be achieved by clicking the left mouse button or by pressing the space bar when the Button has the focus.
For a Combo or List object, a Select event is generated when the user selects an item from the list, whether by pressing the arrow keys or by clicking the left mouse button.
For a MenuItem, a Select event is generated when the user chooses the item.
For all other objects, this event is generated when the user presses the keys associated with the object's Accelerator property.
The event message reported as the result of ⎕DQ
, or supplied as the right argument to your callback function, is a 2-element vector as follows :
[1] |
Object | ref or character vector |
[2] |
Event | Event code |