UIHANDLER OnClick

Called when the user clicks a button. (self, button, down)

Arguments

 * self : - Widget being clicked.
 * button : - "LeftButton", "RightButton", "MiddleButton", "Button4", "Button5", ..., "ButtonN"; however, virtual or overriden clicks  have aribtrary values using,  and.
 * down : - True when the button is pressed, false when it is released.

Details

 * controls which mouse interactions will fire OnClick (defaults to "LeftButtonUp")
 * Preceeded by, and ; and followed by.
 * Blocked in the "up" direction by when it fires.
 * Blocked in the "up" direction after dragging with a button, or any time if the cursor is moved off the widget and not brought back before releasing the mouse button.

Example
A simple button that tells you how it was pressed.

Alternatively, in XML.