Reference Guide > W Routines > WwGetButton Function
  

WwGetButton Function
Obtains the index of a pressed or released button passed as an event structure by a PV‑WAVE Widgets event handler.
Usage
button = WwGetButton(event)
Input Parameter
event — The event handle received by the event handler.
Returned Value
button — The index of the button that was pressed or released. If the function call fails, the value –1L is returned.
Keyword
State — Returns a string array containing the state of all the buttons just before the event.
Discussion
The following are examples of strings found in the State array: 'Button1', 'Button2', ..., 'ButtonN' (indicating which button was pressed); and 'Shift', 'Control', 'Lock', 'Mod1', ..., (button modifiers).
Example
For an example using WwGetButton, see the example for the WwGetPosition Function.
See Also
WwGetKey, WwGetPosition

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.