GUI Help > Events > eventData
eventData
int data=eventData()
Description: Retrieves other information about the event which occurred. The meaning of this data depends upon the event which occurred. There are two main types of event for which eventData() returns very important information: KEYDOWN - eventData() returns a key code for the key which was pressed. MENU_CLICK - eventData() returns the id of the menu item which was clicked.
Return Value: See Above
Parameters:
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)