Button.onClick

When the user clicks on this button.

Prototype

function onClickHandler ( object event )

Example

This example prints the name of the button when the user click.

1
2
3
4
5
 local function onClickHandler ( this )
    print ( 'the click is on the button "'.. this:getSender():getName() ..'"' )
 end

 myButton.onEnter:setHandler(onEnterHandler)